No sound using timidity

View: New views
1 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Parent Message unknown Re: No sound using timidity

by wg2002a :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It seems a few people have problems getting sound with Timidity.  As I try the commands while writing this message, I run into a few situations that I can't get sound out of Timidity myself, either.  Anyway, I can still get Timidity to work for me, read on for more info.

Timidity config file for using soundfont is really simple.  Just get yourself a GM (General Midi) soundfont, which means that it has at least 128 instruments defined in the soundfont.  A couple of realatively small GM soundfont that sound fairly good are: Unison.sf2, merlin_8mbgm_plus13.sf2 (or could be called 8mbgm.sf2).  Keep in mind Timidity directory names and file names must use absolute path names.  Here's the contents of the config file I use that uses Unison.sf2:

----- Begin of /home/tester/timidityConfigs/unisonSimple.cfg -----

dir /home/jn/download/soundfonts

soundfont  Unison.sf2


----- End of /home/tester/timidityConfigs/unisonSimple.cfg -----



Assuming jackd has already started.  Read my last message on how I get the command to start jackd from the command line, using qjackctl as a helper:

   http://sourceforge.net/mailarchive/forum.php?thread_name=568714.98089.qm%40web38405.mail.mud.yahoo.com&forum_name=rosegarden-user


I run jackd with (manually, and with qjackctl):

   /usr/bin/jackd -dalsa -dhw:1 -r48000 -p128 -n2 -Xseq

or:

   /usr/bin/jackd -dalsa -dhw:1 -r48000 -p256 -n2 -Xseq

If I stop jackd (via qjackctl, or via command "killall jackd"), starting timidity with the "-Oj" would automatically starts jackd with:

   /usr/bin/jackd -T -ndefault -dalsa -dhw:1 -r48000 -p128 -n2 -Xseq

which gives me no sound.

So it may be better to put your manual commands in a script with all the parameters and startup sequence you want instead of letting machine doing the guessing.

Caveat emptor!!!

This is one command will start Timidity for me, using JACK:

   killall timidity ;  timidy  -ir -iA -B1,10 -q0/0 -k0 -K0 -A100,60 -m3000 -Oj -EFchorus=0,delay=0,reverb=0,resample=0 -p128 -Em41 -EO -c /home/tester/timidityConfigs/unisonSimple.cfg &

Here's a simpler one that also works, much simpler, useing default parameters:

   killall timidity ;  timidity  -ir -iA -Oj -c /home/jn/jn.timidity/unisonSimple.cfg &

Note that the "-Oj" really tells it to output audio sounds to jackd, not to the soundcard driver.  I know, because I itentionally try to have jackd uses second soundcard.  Without the "-Oj", the audio sound goes to the first sound card.

Also, note that I use "-iA" along with the "&" at the end of the command, this works for me.  A while back "-iAD" without the "&" had worked, but now no longer gives me sound.  I just tried it and that seems to be a problem for me.

At one time "-B2,8" (that is capital "b") gave me decent Midi latency for live keyboard play-along (vkeybd is good for quick test), but is now lagging noticably.  It seems "-B1,10" gives me decent Midi latency for live playing at the moment (2009 July).

Jimmy



     

------------------------------------------------------------------------------
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user
< Prev | 1 - 2 | Next >