You are not logged in.
I've seen TuxGuitar and OSS but I couldn't get my TuxGuitar working properly if I didn't have timidity at the same time.
after confiming that Tuxguitar works properly with timidity running in the background I did the following (as I don't want to have timidity as a daemon):
(make sure you install sound samples : http://wiki.archlinux.org/index.php/Tim … nd_samples )
edit /usr/bin/tuxguitar:
#!/bin/sh
exec /usr/bin/timidity -iA & pid=$! #run timidity in ALSA and get pid
#start running neccassary tuxguitar stuff (untouched)
export CLASSPATH=/usr/share/java/swt.jar:/usr/share/java/swt.jar:/opt/GNUstep/System/Library/Libraries/Java:/opt/GNUstep/Local/Library/Libraries/Java:/home/sergej/GNUstep/Library/Libraries/Java
export LD_LIBRARY_PATH=lib/:/usr/lib/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot:/home/sergej/GNUstep/Library/Libraries:/opt/GNUstep/Local/Library/Libraries:/opt/GNUstep/System/Library/Libraries
cd /usr/share/tuxguitar
exec /usr/share/tuxguitar/tuxguitar "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
kill $pid #kill timidityI run this from xterm with fluxkbox or from KDE and works perfectly
for general info: under settings > sound my options are MIDI Sequencer: "Real Time Sequencer" and MIDI Port "TiMidity port 0 [129:0]"
I don't know if this is the best way but it works, and I think my scripting is ok.
Offline
And it works like a charm!
Thanks man, i owe you a beer! ![]()
Offline
Too easy.
Thanks.
Offline
Thank you! It works, but I got a small problem. Every time I start TuxGuitar, the "Midi Port" option is set to "Gervill", and I always have to change it to Timidity port. And also, with every start TuxGuitar creates one another timidity process, which means after a few hours of work I get 5-10 running processes.
Last edited by ArtKun (2011-09-25 16:41:25)
Offline
I agree with ArtKun, the kill doesn't work and timidity stays running after existing tuxguitar. I tried replacing the line "kill $pid" by "killall timidity" or "pkill timidity", even "pkill -9 timidity", with no effect, timidity process is still running (and can be killed easily with one of these commands).
Excepting that, it's a nice idea. I've had a little trouble to make it work, though. I still don't why it works now and not before. On my computer it seems that I need to run timidity with -iA and -Os options in order to make it work.
Offline