Pages: [1]   Go Down
Author Topic: Processing - Using OscP5  (Read 1199 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
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
« Last Edit: June 01, 2011, 02:38:56 pm by grahamcrackeh » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49343
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49343
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is sending Osc messages to the Processing application?

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

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

touch osc
Logged

Pages: [1]   Go Up
Jump to: