latency/noise with real-time midi input? #1070
-
I am just starting to try out fluidsynth and love it. I am on alpine linux, using rtkit, fluidsynth version 2.2.4 and GeneralUser-v1.47.sf2 from the minuet package in alpine. I run with sudo since that seemed to be needed to get rtkit going. I have a Roland UM-ONE usb to midi interface with a Rockband 3 Keytar wired directly (not wireless) and mostly it works great, but sometimes the notes get backed up and lag or some big white noise/distortions happen. Just wondering if this is expected when playing lots of notes fast or if I'm missing something in setup. Caveat: I am using a rather old laptop, IBM Thinkpad 240, Celeron at 298MHz, 1 core. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
I'll try on another more high powered laptop and see how it goes. :) But if there are any performance tips that'd be great. |
Beta Was this translation helpful? Give feedback.
-
@mawe42 well, things were working great for me for quite a while. I re-installed fresh alpine 3.16 on my Lenovo Thinkpad X220 Tablet and things are lagging pretty bad even with the command I had working previously. Maybe I need to use The sound seems to lag about a second behind the midi notes sent from the keytar. Is it maybe this "period size warning" that is the problem? I tried a few different values to no avail. Also I found https://github.com/FluidSynth/fluidsynth/wiki/LowLatency and http://andrewdotni.ch/blog/2015/02/28/midi-synth-with-raspberry-p/ (which seems to have worked for them but has the period size warning in their output as well). Here's my command:
and the output when started:
I tried polyphony=1 and that didn't help. If you think it might help I can try the compile option of single-floats instead of doubles. The less powerful Thinkpad 240 was actually working great with that same command. I reinstalled that one also and fluidsynth is segfaulting, but I suspect that's due to using alpine edge (experimental/test) so I can retry there with an older alpine as well. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I got things working again. I payed attention to the warning message about period size and sent that in as -o audio.period-size=940 (it changed to 940 for some reason). I also added -c 2 (Number of audio buffers). Thanks to various suggestions above my final command that works is
|
Beta Was this translation helpful? Give feedback.
I got things working again.
I payed attention to the warning message about period size and sent that in as -o audio.period-size=940 (it changed to 940 for some reason). I also added -c 2 (Number of audio buffers).
Thanks to various suggestions above my final command that works is