Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Isadora: Communication & Sensors:
communication OSC between Isadora and Processing

 

 


dsan
New User


Mar 26, 2008, 3:12 AM

Post #1 of 3 (739 views)
Shortcut
communication OSC between Isadora and Processing Can't Post

Hello,
I tri to send data from isadora to processing in OSC.
I use the oscP5 librairy
i turned use type on
But it seem that P5 dont recongnize the type tag from isadora
So i cant receive no message in P5.

Code
import oscP5.*; 
import netP5.*;

OscP5 oscP5;
NetAddress myRemoteLocation;

void setup() {
oscP5 = new OscP5(this,1234);
myRemoteLocation = new NetAddress("127.0.0.1",1234);
}

void draw() {
}

void mousePressed() {
OscMessage myMessage = new OscMessage("/1");
oscEvent(myMessage);
}

void oscEvent(OscMessage theOscMessage) {
print("### received an osc message.");
print(" addrpattern: "+theOscMessage.addrPattern());
println(" typetag: "+theOscMessage.typetag());
}


Any idea?
regards.


dsan
New User


Mar 26, 2008, 5:06 AM

Post #2 of 3 (735 views)
Shortcut
Re: [dsan] communication OSC between Isadora and Processing [In reply to] Can't Post

Maybe adding this
if (theOscMessage.checkTypetag("i")) {
int x = theOscMessage.get(0).intValue();
System.out.println(x);
}

Bus it doesn't work either.
i'm on a intel mac leopard
harg


(This post was edited by dsan on Mar 26, 2008, 6:28 AM)


dsan
New User


Mar 26, 2008, 7:23 AM

Post #3 of 3 (728 views)
Shortcut
Re: [dsan] communication OSC between Isadora and Processing [In reply to] Can't Post

I got it!
Choose a different port for in and out message.
It work
cooooolCoolCool

 
 
 


Search for (options) copyright © TroikaTronix 2007