Monday, May 12, 2008

Java MIDI frustration on MAC OS-X

I was trying to get a new MIDI hardware device to work on a MacBook Pro yesterday and have it recognized in a Java Program. Searches of google pointed me to the MIDI Setup tool in Applications/Utilities. It recognized my Midi USB Uno device, but I still couldn't get it into the dropdown list in my Midi Test applet. I tried creating a new device and mapping the midi in/out to it, but still no luck.

Today I found this post:

http://lists.apple.com/archives/coreaudio-api/2004/Apr/msg00214.html

Pure Java Midi I/O on Mac OS/X

--------------------------------------------------------------------------------

Subject: Pure Java Midi I/O on Mac OS/X
From: "Bob Lang"
Date: Mon, 26 Apr 2004 17:04:43 +0100

--------------------------------------------------------------------------------
Hi All

Until now, Java programmers have had a problem with Midi I/O
on OS/X. Although the pure Java standard classes (javax.sound.midi.*)
were implemented on the Mac, Apple had neglected to write the
necessary midi service provider class(es). This meant that Pure Java
programs could not actually "see" and interface to any Midi I/O devices.

Plum Stone is a midi service provider which fills in this gap and
enables pure Java programs to run on the Mac. Download it from
http://www.cems.uwe.ac.uk/~lrlang/plumstone/

The download is around 60K

Installation is a doddle - just drag and drop the supplied jar file
to /Library/Java/Extensions and that's it! When you run your
pure Java programs, they'll see all your midi devices (including
MidiKeys) and be able to talk to them. You probably won't
even need to re-compile.

Plum Stone is open source (the source files are included in the
download), licence free, cost free, tax free and warranty free.

Regards

Bob Lang

NOTE: The link above has moved to:
http://www.mandolane.co.uk/index.html


I'll let y'all know how it goes.

1 comment:

Anonymous said...

Hi Eric
I have bought this extension (5 GBP) and it worked for me.
Here's another free one: http://www.humatic.de/htools/mmj.htm, but I think at the time I tried, it crashed.

Cheers,
Bernhard
http://bernhardwagner.net