Tux Guitar

Problems

Subject Midi problem



Author Message
Joel
Post: Aug 18th 2006 at 4:10 PM

Hello
System ubuntu linux 6.06
midi hardware with a creative card
and software with timity
Anyone can help me?
Thank
Error log :
javax.sound.midi.MidiUnavailableException
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1078)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:307)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.init(Unknown Source)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.(Unknown Source)
at org.herac.tuxguitar.song.managers.SongManager.(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)


Back to Top
 
Joel
Post: Aug 18th 2006 at 4:12 PM

Sorry error log report without this :
Caused by: java.lang.IllegalArgumentException: Requested device not installed


Back to Top
 
Julian
Post: Aug 18th 2006 at 4:32 PM

Hi.
make you sure your java virtual machine implements the
"Java Sound Api" (see Documentation page)
Timidity is no necesary for java sound apps, so this is no the problem..


Back to Top
 
Daniel Botelho
Post: Aug 29th 2006 at 11:32 AM

Hi!

I'm using Linux and Tuxguitar as alternative to my Windows and guitarpro.
But I'm having the same problem discussed in this topic...

Ok, I have:
- Ubuntu Dapper
- java-1.5.0-sun-1.5.0.06 (installed by Synaptic)
- Downloaded the Java Sound API deluxe and copyed the file soundbank.gm to /jre/lib/audio

I've installed tuxguitar 0.8 using this command:
sudo dpkg -i tuxguitar-0.8-ubuntu-6.06-1.deb
-> It installs correctly, but when try to do play, it sends an error message: "Unavailable Soundbank Error."

Then I've installed the the tuxguitar-alsa-0.8-ubuntu-6.06-1.deb:
sudo dpkg -i tuxguitar-alsa-0.8-ubuntu-6.06-1.deb
-> Ok, now I can do play and even open files from guitarpro, but it still sends an Exception Message and I don't have sound :

Here it's the exception Message:
javax.sound.midi.MidiUnavailableException: Audio Device Unavailable
at com.sun.media.sound.MixerSynth.implOpen(MixerSynth.java:154)
at com.sun.media.sound.AbstractMidiDevice.doOpen(AbstractMidiDevice.java:144)
at com.sun.media.sound.AbstractMidiDevice.open(AbstractMidiDevice.java:108)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.setSynthesizer(Unknown Source) at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.getSynthesizer(Unknown Source) at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.close(Unknown Source)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.init(Unknown Source)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.(Unknown Source)
at org.herac.tuxguitar.song.managers.SongManager.(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
javax.sound.midi.MidiUnavailableException: Audio Device Unavailable
at com.sun.media.sound.MixerSynth.implOpen(MixerSynth.java:154)
at com.sun.media.sound.AbstractMidiDevice.doOpen(AbstractMidiDevice.java:144)
at com.sun.media.sound.AbstractMidiDevice.open(AbstractMidiDevice.java:108)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.setSynthesizer(Unknown Source) at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.getSynthesizer(Unknown Source) at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.init(Unknown Source)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.(Unknown Source)
at org.herac.tuxguitar.song.managers.SongManager.(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)

Can anyone help me solve this problem ?


Back to Top
 
Julian
Post: Aug 29th 2006 at 1:19 PM

Hi..

Well. there are 2 points.
you have installed "tuxguitar-alsa", this is a plugin to connect with alsa synthesizer.. when you install this plugin you will see at menu anew item "plugins" and you have a subitem "TuxGuitar-alsa Plugin", to config the output device... (if you don;t have a Midi Card, you will need a soft sinthetyzer.. like timidity, and select this device to get sounds)

the other point is the soundbank.. and exception...
this is no part of the plugin.. (the plugin doesn't use java soundbank)
so this is to run without plugin.
1_ if you have ubuntu dapper and java from repositories.. you shouldbe have java soundbank installed at:
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/audio
or you can set the soundbank at tuxguitar config dialog. (needs restart app)

2_MidiUnavailableException .. this exception is caused when java can;t open an output synthetizer.. but if you have the alsa plugin.. don't worry for this.. tuxguitar try to open this synth as default.. but after load plugin.. this synth is not used..

Bye


Back to Top
 
Daniel Botelho
Post: Aug 29th 2006 at 2:58 PM

Ok!

First, thanks for your quick reply :)

Now I have sound and it seams that it's working fine :)

What I've done:
-> reeinstalled the tuxguitar
-> and run from the command line like this: aoss tuxguitar
-> and .... now it works :D

Thanks and best regards!! :)


Back to Top
 
John
Post: Aug 30th 2006 at 6:50 PM

Hello,
I have
- Ubuntu Dapper
- java-1.5.0-sun-1.5.0.06 (installed by Synaptic)
I installed tuxguitar-0.8-ubuntu-6.06-1.deb but the sound doesn't work (but I see the tab move)
So I installed tuxguitar-alsa-0.8-ubuntu-6.06-1.deb
But tuxguitar doesn't work and crash :
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(ArrayList.java:323)
at synth.ReceiverImpl.open(Unknown Source)
at synth.ReceiverImpl.open(Unknown Source)
at synth.SynthesizerImpl.open(Unknown Source)
at org.herac.tuxguitar.play.models.defaultplayer.SongPlayer.setSynthesizer(Unknown Source)
at plugin.TGPluginImpl.init(Unknown Source)
at org.herac.tuxguitar.gui.plugins.PluginManager.initPLugins(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
/usr/bin/tuxguitar: line 30: 16421 Processus arrêté ${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2"

I hope that this bug will be repair for the next versions. I wait the version 1 with impatience:p


Back to Top
 
Julian
Post: Aug 30th 2006 at 7:28 PM

Hi..
well bout alsa plugin.. this is a bug.. (is fixed now in CVS version)
now you can edit this file:
/home/xxx/.tuxguitar/tuxguitar-alsa.properties
you will see a var "device=x"
this bar must be greater or equal than 0..
(is the index of the alsa output device, default is 0)
to run tuxguitar with alsa plugin, you can install "timidity"
and start timidity:
$timidity -iA -Os &
then run tuxguitar and go to "plugins" menu, "TuxGuitar-alsa"
and select a timidity device...

To Run without plugin, if the soun'd doesn't works..
it can be a conflict beetwen 2 sound apps (it can be a music app.. or a messeger app..) running at same time..i don't know why, by some cards has this problem with java sound
try this:
$aoss tuxguitar


Back to Top
 
vev
Post: Apr 26th 2007 at 6:07 PM

hi,
entering /usr/lib/jvm/java-*/jre/lib/audio as a soundbank solved my sound problem.
thanx
great program!


Back to Top
 
Camilla
Post: Jun 23rd 2007 at 9:05 PM

Gente eu sou brasileira, esse eu acredito ser o único lugar onde posso resolver meu problema
Eu baixei o Tuxguitar, mas o som não abre, e nem o Tab funciona, a mensagem que aparece é: "banco de som inválido"
Meu TuxGuitar é o 0.9, uso o Windows Xp e o Java 1.5

I'm from Brazil, i've problems with TuxGuitar 0.9, because he's not open the sound, i have the Java 1.5 and Windows Xp. Someone can help me...


Back to Top
 
Julian
Post: Jun 24th 2007 at 9:59 AM

banco de som inválido.. i think is the translationof "Unavailable Soundbank" ??
See here:
http://www.tuxguitar.com.ar/tgwiki/doku.php?id=doc:error_soundbank


Back to Top
 
Stephen.C
Post: Jul 5th 2008 at 3:17 PM

Hey, what exactly does aoss do? I did the command to run TG, just like Daniel had suggested, and it works, but I'd like to know WHY it works. :)

Thank you, I'll bookmark this so that I can see any replies, and sorry for bring back an old topic. The two things I hate most in life are people who bring dead stuff back to life, and people who ask you to EMAIL an answer to them!


Back to Top
 
Stephen.C
Post: Jul 7th 2008 at 8:24 PM

And, as usual, no one helped me and I still figured it out. :)

Maybe I should just quit asking people stuff, I usually don't and it never helps when I do! Anyway, I found it while I was digging around and it looks like it just forces alsa to load. Good times, thanks anyway kiddos!


Back to Top
 
Julian
Post: Jul 7th 2008 at 8:32 PM

aoss ( Alsa-oss ) is an OSS wrapper for alsa (java sound api seems to play sounds under OSS api).
But i don't have idea about detailed information. so that's why no replies.
if you want really know what alsa-oss does, you should ask/read on alsa web site.
http://alsa.opensrc.org/index.php/Alsa-oss

By the way, i suggest you install timidity, what can run under Alsa instead of OSS.


Back to Top
 
Leandro
Post: Feb 15th 2009 at 3:17 PM

Hi i did have problem with the sound on my linux fedora!

I have install the tuxguitar that comes on repository but always the sound was cracking, and did try every thing and nothing help.

So I install linux puppy on a pen drive to see if it was better.

On that one i install the tuxguitar-jet and the juva runtime 5, and every thing work spoted one.

so i boot the fedora again, remove the tuxguitar that comes on it

install the tuxguitar-jet and nothing work, was with a problem java-mid missing or somthing like this.

so i install the java runtime 6 and it did not work, so i decide to reboot the system again and, know every thing is fine.

Hope it helps some one else.

leoaraujo79@gmail.com


Back to Top
 
Anonymous
Post: Feb 13th 2010 at 6:56 AM

remove open java package and install java from sun jre . i install ssun-java-jre sun-java6-bin and ia32-sun-java-jre next install tuxguitar


Back to Top
 
Anonymous
Post: Feb 26th 2010 at 4:05 AM

install

sudo apt-get install alsa-oss

oss tuxguitar


Back to Top