Thanks for this awesome library!!!
First it didn't work for me, I'm using Mac OS X 10.4.11. But after a bit of effort I could connect it to Reason 4. So this is what worked for me, maybe it helps someone:
1. Install the mac release of promidi -> http://texone.org/promidi/promidi_mac.zip
2. Install mmj into Library/Java/Extensions of your OS X -> http://www.humatic.de/htools/mmj.htm
3. Open your OS X Audio-Midi-Configuration Utility
4. Click on IAC Driver, activate it and ensure that you have an active port (like "IAC-Bus 1")
5. Open Reason, and select in the preferences "IAC Driver IAC-Bus 1" as external control on Bus A
6. Add any instrument to your rack
7. Activate "ADV MIDI DEVICE" in the interface at the top of your Rack and select your instrument in channel 1
8. Use the following simple example to test the connection:
Code:import promidi.*;
MidiIO midiIO;
MidiOut midiOut;
void setup(){
size(128*5,128*5);
background(0);
smooth();
//get an instance of MidiIO
midiIO = MidiIO.getInstance(this);
//print a list with all available devices
midiIO.printDevices();
//open an midiout using the first device and the first channel
midiOut = midiIO.getMidiOut(0, 0);
}
void draw(){
}
void mousePressed(){
Note note = new Note(int(mouseX/5f),int(mouseY/10f)+60,int(random(1000)));
midiOut.sendNote(note);
print(note);
}
9. Have fun
_ basti