We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › promidi update for mac osx
Pages: 1 2 3 
promidi update for mac osx (Read 13284 times)
promidi update for mac osx
Aug 31st, 2007, 5:44pm
 
Hi All

Some of you had to wait quiet long now, but here is the new proMIDI version, integrating mandolane. I haven't done so much testing but all the exceptions on the mac are gone.

Thanks a lot to Bob from the mandolane team, who prepared a special oem version for me and this way supported the processing community.

http://texone.org/promidi/promidi_mac.zip

Re: promidi update for mac osx
Reply #1 - Sep 3rd, 2007, 7:02pm
 
I finally see inputs!  Thanks for the hard work, tex.
Re: promidi update for mac osx
Reply #2 - Sep 5th, 2007, 6:13am
 
Thanks for this update (and promidi in general) it's great! I was bummed when I couldn't get it workng on my macbook but now it's working nicely,So far no problems. I have Processing being controlled by Ableton Live all on the same macbook using IAC (midi loopback that comes with os x). Very nice stuff now I can control my sounds and graphics at the same time all from Live, wicked!

Re: promidi update for mac osx
Reply #3 - Sep 17th, 2007, 2:19pm
 
@refresh: how did you manage this in ableton? i did the same and it's quite complicated to use every track because you have to duplicate it.
Re: promidi update for mac osx
Reply #4 - Sep 17th, 2007, 7:00pm
 
@ mobic: In Live I chose Midi to IAC Bus 1 in the Midi track(s).
did you check out the proMidi plug() method? makes dealing with events, devices, and channels easier.
http://www.texone.org/promidi/midiio_method_plug.htm
look for the example in the proMidi library.

Lately I've been using Bidule to take MIDI from ableton and translate that into OSC for flash (via flosc) and that works nicely. This method also works for sending OSC messages into Processing so if you find that proMidi is too complicated or you are using a lot of OSC anyway you might want to try the Live--MIDI-->Bidule--OSC-->Processing route.
Re: promidi update for mac osx
Reply #5 - Sep 19th, 2007, 3:16am
 
@refresh

i'm very interested in your method to control processing from ableton live.
it would be great to see how it works.
any sources or demofiles avaliable ?
Re: promidi update for mac osx
Reply #6 - Oct 20th, 2007, 12:07am
 
I have tried everything including this most recent update and I continue to get the following.  I am running OS X 10.4.10, Java 1.5, on a 1.83Ghz Intel Core Duo MacBookPro.

I have also tried installing mmj and Mandolane prior to this latest update.  Any suggestions???

I don't know much about Java.. so apologies if I am missing something major

printPorts of midiIO
<< inputs: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<< outputs: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
output 0 : Java Sound Synthesizer
<<>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Vector.java:710)

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Vector.java:710)
at promidi.MidiIO.openInput(MidiIO.java:343)
at Temporary_1916_6232.setup(Temporary_1916_6232.java:18)
at processing.core.PApplet.handleDisplay(PApplet.java:1285)
at processing.core.PGraphics.requestDisplay(PGraphics.java:680)
at processing.core.PApplet.run(PApplet.java:1454)
at java.lang.Thread.run(Thread.java:613)
at promidi.MidiIO.openInput(MidiIO.java:343)
at Temporary_1916_6232.setup(Temporary_1916_6232.java:18)
at processing.core.PApplet.handleDisplay(PApplet.java:1285)
at processing.core.PGraphics.requestDisplay(PGraphics.java:680)
at processing.core.PApplet.run(PApplet.java:1454)
at java.lang.Thread.run(Thread.java:613)

Re: promidi update for mac osx
Reply #7 - Nov 20th, 2007, 2:04pm
 
Thanks for this great looking library!

I have been able to get MIDI into a sketch, however so far I have not been successful sending MIDI from a sketch.

I am running OS X 10.4.10, Java 1.5, on a Macbook.

I wonder if anyone has any suggestions?

Thanks.
Re: promidi update for mac osx
Reply #8 - Dec 6th, 2007, 5:14am
 
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
Re: promidi update for mac osx
Reply #9 - Jan 7th, 2008, 12:02am
 
I think I've found a bug.

I'm not sure if the problem lies within promidi or mandolane, but if you send a cc message with a value of "0" to this library, it is erroneously interpreted as a note off event.

I'd really like to see this fixed so I continue development and will be happy to help in any way I can.
Re: promidi update for mac osx
Reply #10 - Jan 10th, 2008, 2:24am
 
A quick question:

I want to develop in Windows but ultimately run the sketches on OS X.  Should I use the Promidi Mac version in my  libraries, or would I have to include both the PC version and the Mac version?

Thanks for any help - the library is great!  Works like a charm.
Re: promidi update for mac osx
Reply #11 - Jan 10th, 2008, 4:09am
 
Update:

To create an app for both platforms, I put all these files into promidi/library/

promidi.jar (Mac version)
promidi.jar (PC version, renamed promidipc.jar)
libProMandoMidiJNILib.jar
libProMandoMidiJNILib.jnilib

I can develop the app in windows and the export to a mac application.  
Re: promidi update for mac osx
Reply #12 - Mar 25th, 2008, 1:53pm
 
Would be nice to have a link to this version from the Promidi website.
Re: promidi update for mac osx
Reply #13 - Apr 30th, 2008, 5:26pm
 
thank you so much for your help basti

you saved my day Cheesy

now my lemur talks to my sketch as well as my eobody2 does
Re: promidi update for mac osx
Reply #14 - Sep 13th, 2008, 5:13pm
 
I'm developing a cross-platform app using Eclipse with the processing core and promidi.

Can someone tell me what I tell my Mac users to do with the libProMandoMidiJNILib.jnilib file?

Do they have to put it in Library/Java/Extensions or something?

I'm compiling as a FatJar so I don't know if I can just include it in my build.... it doesn't seem to be working for them so far.
Pages: 1 2 3