You are not logged in.

#1 2010-07-07 13:54:03

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

HOWTO - MIDI + TuxGuitar + Alsa(XFi)

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 timidity

I 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

#2 2010-08-30 22:58:54

Jimi
Member
From: Brooklyn, NY
Registered: 2009-09-25
Posts: 125
Website

Re: HOWTO - MIDI + TuxGuitar + Alsa(XFi)

Thanks for this! Saved me tons of trouble!

Offline

#3 2011-03-21 19:23:55

nenadsky
Member
From: Bor
Registered: 2009-05-20
Posts: 13

Re: HOWTO - MIDI + TuxGuitar + Alsa(XFi)

And it works like a charm! big_smile Thanks man, i owe you a beer! smile

Offline

#4 2011-03-31 08:48:30

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: HOWTO - MIDI + TuxGuitar + Alsa(XFi)

Too easy.

Thanks.

Offline

#5 2011-09-25 16:40:55

ArtKun
Member
From: Noyabrsk, Russia
Registered: 2011-09-11
Posts: 5

Re: HOWTO - MIDI + TuxGuitar + Alsa(XFi)

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

#6 2012-01-16 16:08:20

Niavlys
Member
Registered: 2010-11-25
Posts: 12

Re: HOWTO - MIDI + TuxGuitar + Alsa(XFi)

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

Board footer

Powered by FluxBB