Go Down

Topic: Processing - Using OscP5 (Read 1 time) previous topic - next topic

Jun 01, 2011, 09:37 pm Last Edit: Jun 01, 2011, 09:38 pm by grahamcrackeh Reason: 1
Code: [Select]
import oscP5.*;
import netP5.*;

OscP5 osc;
Object[] args;

void setup(){
 size(400, 400);
 osc = new OscP5(this, 8000);
}
void oscEvent(OscMessage message){
println(message.addrPattern());
}


that is my code.  I only want to know how to get an int of the argument from the message item. Thank you

PaulS

http://processing.org/reference/int_.html
Looking at the online documentation for the application you are using IS allowed.

I actually meant to say float, and the problem is I don't know how to get the argument, not the "address pattern", in the form of a float.  I would like a piece of code on how I could obtain this number if possible. Thank you.

PaulS

What is sending Osc messages to the Processing application?

Have you looked at
http://www.sojamo.de/libraries/oscP5/index.html


Go Up