integrating MAX MSP and PROCESSING
hello
has anyone had any experience integrating max and processing languages?
is there a way to do it?
best,
peter
I think mother is one way to go, but I never really had time to explore it
let us know if it works for you, I'm interested also in this topic
best, Phil
Open Sound Control works for me. Find the oscP5 library.
mz
//1) you must declare osc5 and netP5
//////////////////////////////////////
import oscP5.*;
import netP5.*;//oscP5library
NetP5 netP5;
OscP5 oscP5;
//step 2: create definisi data from max/msp and OSC event
////////////////////////////////////////////////////////////////
void oscEvent(OscMessage theOscMessage) {
/* check if theOscMessage has the address pattern we are looking for. */
if(theOscMessage.checkAddrPattern("/dac")==true) {
/* check if the typetag is the right one. */
if(theOscMessage.checkTypetag("ff")) {
/* parse theOscMessage and extract the values from the osc message arguments. */
firstValue = theOscMessage.get(0).floatValue();
secondValue = theOscMessage.get(1).floatValue();
//int thirdValue = theOscMessage.get(2).intValue();
//print("### menerima pesan OSC /dac with typetag f f.");
println(" nilai: "+firstValue+", "+secondValue);
return;
}
}
println("### menerima sebuah pesan osc. dengan pola alamat "+theOscMessage.addrPattern());
}