Forums > MaxMSP

sending list from Max to Processing

October 1, 2013 | 11:19 pm

Hello,
for projecting graphical score information on the basis of audio analysis data I need a way to communicate lists between Max and Processing. I know similar topics were already discussed here, but I do still not understand how this can be archieved. Could someone please give me an example of sending a coll or matrix to a Processing sketch?


October 2, 2013 | 3:32 am

i know just a little about proessing… so that what i did:
I use oscP5 to send trough osc.
=================================================
import oscP5.*;
import netP5.*;

OscP5 oscP5;
NetAddress myRemoteLocation;

int unitw, unith, trr, wh, ht, tr;

void oscEvent(OscMessage theOscMessage) {
if(theOscMessage.checkAddrPattern("rect")==true) {
wh = theOscMessage.get(0).intValue();
ht = theOscMessage.get(1).intValue();
tr = theOscMessage.get(2).intValue();
// println(whl);
}
if(theOscMessage.checkAddrPattern("unit")==true) {
unitw = theOscMessage.get(0).intValue();
unith = theOscMessage.get(1).intValue();
println(unitw);
trr = theOscMessage.get(2).intValue();

}
}
===========================================
From max i send a lists (rect 10 2323 1 ……) , (unit 67 32 99993 …..)
so wh = 10 ht=2323 tr=1 etc…


October 2, 2013 | 3:50 am

thanks a lot for the reply. I can try this tomorrow and see if I get it going.


Viewing 3 posts - 1 through 3 (of 3 total)