timidity support "Alsa sequencer interface". if Use -iA option, timidity works as virtual midi sequencer mode. (like yamaha xg software synth in Windows) I suggest install this script when use alsa flags. -- #!/sbin/runscript depend() { need alsasound } start() { ebegin "Starting Timidity Virtual Midi Sequencer" start-stop-daemon --start --quiet --background --exec /usr/bin/timidity -- -iA eend $? } stop() { ebegin "Stopping Timidity" start-stop-daemon --stop --quient --exec /usr/bin/timidity } Reproducible: Always Steps to Reproduce: 1. 2. 3.
Sounds good to me but I don't use timidity...anyone else care to comment? I'm happy to implement this if others agree it should go in...
Is it multi-user safe? That would be my first concern.
Timidity currently doesn't compile against alsa-lib 1.0.1, but this script works with 0.9.8 Note that there is a small typo. Should be -quiet and not -quient
Actually, timidity _should_ now compile against alsalib-1.0 (I commited the fix about 2 weeks back). So... is this multi user safe? Still relevant?
working on this right now...
Alright... I put together an init.d script with conf.d settings for command line options (-iA is always implied). I tried to use sane default settings. Please test it out. You can get it from the media-sound/timidity++/files/ directory (conf.d.timidity -> /etc/conf.d/timidity and similar for init.d). Future emerges will install them by default with USE=alsa. I also updated the alsasound init.d script (bug #30942) so that it loads snd-seq even with no hardware sequencers so timidity will work properly.