|
Author |
Topic: iCubeX + MIDI + OSX? (Read 4465 times) |
|
mungbean
|
iCubeX + MIDI + OSX?
« on: Apr 13th, 2004, 4:01pm » |
|
Hi, Wondered if anyone is using iCubeX or other MIDI-based sensor equipment to control tangible/physical projects? I've just started using Processing and it seems that the MIDI issue (particularly on MacOS X) isn't particularly simple. Or at least, it seems that javax.sound.midi isn't supported on all platforms. Can anyone clarify this or suggest alternatives? e.g. is it possible to get data from a USB MIDI interface via the USB port? (Buying different sensor kits isn't really an option - we already have 10 iCubeX systems and I'd like our students to be able to use Processing.) Thanks!
|
|
|
|
REAS
|
Re: iCubeX + MIDI + OSX?
« Reply #1 on: Apr 15th, 2004, 4:03am » |
|
I don't think this should be very difficult. I remember there have been some previous postings about MIDI and Processing. Unfortunately I don't have any experience with MIDI and little experience with OS X. I hope you get a response. Having 10 iCube systems around seems like great potential.
|
|
|
|
REAS
|
Re: iCubeX + MIDI + OSX?
« Reply #2 on: Apr 15th, 2004, 4:08am » |
|
OK, so I can't find any evidence of anyone using MIDI with Processing. We have this post from fry: Quote: i was thinking this had been mentioned elsewhere.. but you can get access to MIDI via the javax.sound api, which should be accesible through p5. this will at least get you started until we actually add "real" support for it. |
| So you think the javax.sound.midi isn't supported for OS X?
|
|
|
|
mungbean
|
Re: iCubeX + MIDI + OSX?
« Reply #3 on: Apr 25th, 2004, 1:40pm » |
|
[This probably needs moving to a MIDI discussion area] on Apr 15th, 2004, 4:08am, REAS wrote:So you think the javax.sound.midi isn't supported for OS X |
| I'm just back from holiday, sorry for delay in replying. Most of the discussion I've seen seems to focus on playing back MIDI files, which is supported via Quicktime anyway, but no help if what you want to do is MIDI input from devices. HOWEVER, just this morning I stumbled across a newish-looking wrapper for OSX MIDI called PLUM-STONE at http://www.cems.uwe.ac.uk/~lrlang/plumstone/ ... quoted from the web page: Quote:Currently, the MIDI system on the Apple Macintosh OS/X is not completely compatible with the standard Java package javax.sound.midi Plum Stone is an open source Java project which fills in the gap, providing javax.sound.midi compatible MIDI input and output on Apple Mac OS/X. Once installed, standard Java programs written on other platforms should execute correctly (Errors/bugs/misunderstandings notwithstanding) |
| Looking at the source, its approach is to implement the I/O via Apple's Core Audio/MIDI support. The example provided with PLUM-STONE worked fine on my G4 PowerBook w/ OSX 10.2.8 and a Midiman Oxygen8 USB interface/keyboard when I compiled it with 1.4.1... I'm not sure how to go about integrating this into a P5 applet but I'll try it when I have time. BTW, going back to the iCubeX, InfusionSystems' editor is Java-based and they provide a JNILib with it (libMidiPort.jnilib) which appears to do their MIDI I/O, so perhaps it would be feasible to hook into that if something like PLUM-STONE wasn't useful I mailed them a few weeks back to ask if the JNILib was documented but have heard nothing back. In case it's of any use, a recent msg on the javasound-interest list I found suggests that the jMusic project and others are having problems with OSX MIDI I/O as well: http://archives.java.sun.com/cgi-bin/wa?A2=ind0404&L=javasound-inter est&F=&S=&P=5445 (this thread includes a msg by the author of PLUM-STONE, Bob Lang, I just noticed...)
|
|
|
|
mungbean
|
Re: iCubeX + MIDI + OSX?
« Reply #4 on: May 12th, 2004, 11:15am » |
|
Been too busy recently to look into this further, but just to keep the ball rolling, I eventually got this reply from Infusion Systems (makers of iCubeX) when I was asking about their JNI lib: Quote:There several ways to talk MIDI with JAVA. One is to use there Java MIDI library (I think they call it CoreAudio / JAVA). You have to look into apple developer Web site and register as a developer. Alternatively, you can also use CoreAudio library. It contains C/C++ library for any sound related OS calls. After that, you have to write an interface to bridge JAVA and C/C++ (this is where JAVA native interface comes in (JNI)). These two solutions are for OS X. For OS 9, there is a public library for that MIDI freeware called OMS. For the documentation of the libMidiPort.jnilib, we will check when and how we will bring this public (on our to do list). |
|
|
|
|
|
les_battersby
|
Re: iCubeX + MIDI + OSX?
« Reply #5 on: Sep 1st, 2004, 10:41am » |
|
on Apr 13th, 2004, 4:01pm, mungbean wrote: Wondered if anyone is using iCubeX or other MIDI-based sensor equipment to control tangible/physical projects |
| yup - I have the Eowave Eobody sensor/midi kit from IRCAM - but am only just beginning to use it - also have Max/MSP and jitter to play with and a little MIDI to servo controller unit - using max kinda like virtual circuitry in this instance - I am very interested in finding out more about P5 and using MIDI as input... However, I found recently tho this link also: http://jklabs.net/maxlink/ (I think I found it right here in these pages...) you can apparently get max and P5 talking.. max handles MIDI input fine...
|
|
|
|
mungbean
|
Re: iCubeX + MIDI + OSX?
« Reply #6 on: Nov 10th, 2004, 4:51pm » |
|
OK, I think this is sorted. Firstly, Plum Stone ( http://www.cems.uwe.ac.uk/~lrlang/plumstone/ ) works fine with Processing... just unzip the archive, and copy plumstoneserv.jar into /Library/Java/Extensions. I ran the example using TestServer.java (putting it in the my sketch's code directory) and it worked fine. But the result doesn't look very processing-like. Then I came across the stuff about promidi in another thread: http://processing.org/discourse/yabb/board_Tools_action_display__num_1091823346.html I had to modify the source of promidi's MidiIn.java to get it to work (along with Plum Stone) on OS X, but it's there. So I'll shift any further discussion to where folk are talking about promidi. [ Which is the best topic to put MIDI discussions in anyway ]
|
|
|
|
|