LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   java & midi in linux (https://www.linuxquestions.org/questions/programming-9/java-and-midi-in-linux-440036/)

angelo_maci 04-29-2006 12:25 PM

java & midi in linux
 
hi
I would like to know if it is possible in java programs or applets in linux to handle midi stuff.
thanks in advance

Mega Man X 04-29-2006 12:33 PM

Yes. It should work out of the box. I actually wrote a little java-midi player once but I can't find the source anywhere :\. I did that because midi in Linux can be easy or annoying to get to work :). Anyway, check the Java almanac for tips:

http://javaalmanac.com/egs/javax.sound.midi/Load.html

Regards!

--

EDIT: If you want to take a look how my "jmidi" worked, I still have a binary:

http://goto.glocalnet.net/torch/appl...midi/jmidi.jar

Usage:

java -jar jmidi.jar <song_name.mid>

you can download this midi for testing:

http://goto.glocalnet.net/torch/appl...idi/silius.mid

Mind you though... it's very, very simple. It's just a piece of code that I use to play midi in my home-made Java games ^_^

Good luck!


All times are GMT -5. The time now is 05:58 PM.