LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2006, 12:25 PM   #1
angelo_maci
Member
 
Registered: Apr 2006
Posts: 62

Rep: Reputation: 15
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
 
Old 04-29-2006, 12:33 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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!

Last edited by Mega Man X; 04-29-2006 at 12:39 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
playing a midi file in java linuxmandrake Programming 1 03-18-2006 01:22 PM
midi keyboard & sb audigy 2 chtulu69 Linux - Hardware 1 04-13-2004 07:16 AM
Java, MIDI royals1216 Linux - Software 3 01-03-2004 11:19 AM
Java, Midi royals1216 Linux - Newbie 1 12-28-2003 04:45 PM
Gnome sound events & MIDI skip1 Linux - Software 0 05-22-2003 04:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration