We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › OSC message format for Reaktor??
Page Index Toggle Pages: 1
OSC message format for Reaktor???? (Read 1601 times)
OSC message format for Reaktor????
Jun 11th, 2009, 5:53pm
 
Hi, i'm using OSCP5 library to send OSC messages.
Reaktor seems to listen ok, because in preferences the messages appear, but when I bind (i.e /Cutoff 0.2) to a knob, nothing happens in reaktor.
I'm formatting the number with (float)mouseX/100

it's that ok?

any ideas?
Re: OSC message format for Reaktor????
Reply #1 - Jun 12th, 2009, 2:50am
 
Hello, Cochese, care if I link this thread to an ongoing thread at the Reaktor forums?
Smiley Smiley Smiley.nativeinstruments.de/forum_us/showthread.php?t=71878

there is reference there to a pdf file that might be useful to you...
anyway, to have Reaktor detect your message is already way further than I got Wink
All info shared here about which oscP5 template you used, osc properties setup in Reaktor, etc... , most welcome!
cheers,
carloskleiber
Re: OSC message format for Reaktor????
Reply #2 - Jul 9th, 2009, 4:11pm
 
import oscP5.*;
import netP5.*;


OscP5 oscP5;

NetAddress myBroadcastLocation;

void setup() {
 size(400,400);
 frameRate(25);
 
 oscP5 = new OscP5(this,10000);

 myBroadcastLocation = new NetAddress("127.0.0.1",10000);
}


void draw() {
 background(0);

}


void mousePressed() {
 /* here i put a message based on mouse position click
with the name /Cutoff and a float variable associated*/
  OscMessage m;
 m = new OscMessage("/Cutoff "+(float)mouseY/100);
 oscP5.flush(m,myBroadcastLocation);  
     //break;
//  println("Cutoff "+(float)mouseY/100);
 
}


void keyPressed() {
 OscMessage m;
 switch(key) {
   case('c'):
     /* connect to the broadcaster */
     m = new OscMessage("/server/connect",new Object[0]);
     oscP5.flush(m,myBroadcastLocation);  
     break;
   case('d'):
     /* disconnect from the broadcaster */
     m = new OscMessage("/server/disconnect",new Object[0]);
     oscP5.flush(m,myBroadcastLocation);  
     break;

 }  
}


/* incoming osc message are forwarded to the oscEvent method. */
void oscEvent(OscMessage theOscMessage) {
 /* get and print the address pattern and the typetag of the received OscMessage */
 println("### received an osc message with addrpattern "+theOscMessage.addrPattern()+" and typetag "+theOscMessage.typetag());
 theOscMessage.print();
}






Using the guide at mikeoren.com/reaktorosc.pdf reaktor the OSC monitor reads the message(/Cutoff 1.03 ---- /Cutoff 0.32 ---- etc) but i can't assign it to a knob.

HELP!
Re: OSC message format for Reaktor????
Reply #3 - Jul 9th, 2009, 5:59pm
 
Finally!

The reason that Reaktor won't read my message was because i concatenated bad.

the way to concatenate is this :

 m = new OscMessage("/Cutoff");
 m.add((float)mouseY/100);

Page Index Toggle Pages: 1