Start a new topic

OSC processing example

 I am trying to send OSC Messages from Processing to Facade but it is not answering. Does it exist a way to know if Facade is receiving the OSC message?


I have modified an example of Processing to test, I put relevant pieces of code below

 

void setup() {
  size(400,400);
  frameRate(25);
  /* start oscP5, listening for incoming messages at port 12000 */
  oscP5 = new OscP5(this,12000);
  myRemoteLocation = new NetAddress("127.0.0.1",33132);
}


void mousePressed() {
  /* in the following different ways of creating osc messages are shown by example */
  OscMessage myMessage = new OscMessage("/tabula/osc");
  
  myMessage.add("playSet"); /* add an int to the osc message */
  myMessage.add(1);
  myMessage.add(1);
  myMessage.add("move");
  /* send the message */
  oscP5.send(myMessage, myRemoteLocation); 
}

 Is it possible that the trial version does not allow the OSC connection?


Hello Jorge,


Have you enabled the OSC Receiver from the startup options, and turned off firewalls?

Also please note that the playSet command you are using is not existing.

It should either be playSetId or playSetIndex, please look at the list:


https://docs.google.com/spreadsheets/d/1DXrhVA-t4ZhLm7Dd0tpRsE6MPFVon4WicfyF3pIENcY/edit#gid=0


You could also make these calls using the HTTP receiver, for play command it can be simpler/safer


Best

Login or Signup to post a comment