Re: Midi questions [solved]

Pedro Lopez-Cabanillas <[email protected]>
Newsgroups gmane.linux.suse.multimedia
Message-ID <[email protected]>
On Saturday, January 16, 2010, Koenraad Lelong wrote:
> I finally tried again, after having some troubles again.
> I seems that if fluidsynth runs as root, it (mostly) works fine but when
> I run it as an ordinary user, I get distorted output.
> I didn't use qsynth this time, altough the problems are similar.
>
> Any more suggestions ? What can I do to help this get sorted out ?

It is hard to diagnose with only a "distorted output" description. Maybe it is 
a problem with xruns? in this case, try increasing the buffer sizes. If you 
are using the alsa audio output:

$ fluidsynth -a alsa -oaudio.period-size=1024 -oaudio.periods=4 soundfont.sf2

It is much more comfortable using QSynth, the fields are labeled "Buffer Size" 
and "Buffer Count" in the audio tab of the setup dialog. The minimum nubers 
are very dependent on the soundcard model.

Did you see warnings like these?
fluidsynth: warning: Failed to pin the sample data to RAM; swapping is 
possible.
fluidsynth: warning: Failed to set thread to high priority

The above warnings are about the realtime priority, and can be solved adding 
the following lines to the file /etc/security/limits.conf and adding yourself 
to the audio group:
@audio         -       rtprio          90
@audio         -       memlock         unlimited

Please read this article:
http://en.opensuse.org/JackLab/Assigning_real-time_priorities_with_PAM

BTW, have you tried kmid2?
http://kde-apps.org/content/show.php/KMid2?content=116404

Regards,
Pedro
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.