Hi there,
I have problem about communication between Android processing and Pure data. When I run my code in processing, I see on the back of my screen that the phone send information to my computer but definitly not to pure data. That surprise me because the code is working in java but not in android.
I’ve already check the permission for android in my computer, the both are connect on the same wifi and I use to communicate with PD oscp5 for processing and mrpeach to receive in PD
Here the code :
import oscP5.;
import netP5.;
import controlP5.*;
ControlP5 controlP5;
Knob myDial;
Slider mySlider;
OscP5 oscP5;
NetAddress myRemoteLocation;
int knobValue = 100;
void setup() {
size(400,400);
smooth();
frameRate(25);
// create a new instance of oscP5.
// 12000 is the port number you are listening for incoming osc messages.
oscP5 = new OscP5(this, 12000);
myRemoteLocation = new NetAddress(“127.0.0.1”, 12000);
controlP5 = new ControlP5(this);
myDial = controlP5.addKnob(“knobValue”)
.setPosition(100, 100)
.setSize(200, 200);
}
void draw() {
background(0);
fill(255, 0, 0);
;
println(knobValue);
}
void mousePressed() {
/* in the following different ways of creating osc messages are shown by example /
//OscMessage myMessage = new OscMessage(int(knobValue));
//myMessage.add();
OscMessage myMessage = new OscMessage("/test");
myMessage.add(knobValue);
/ send the message */
oscP5.send(myMessage, myRemoteLocation);
}
the routing in pd :
[import mr peach] -----> [udpreceive 127.0.0.1 12000]--------->[unpackOSC]------->[routeOSC /test]---->[number]
if someone can help me that would be great,
Thanks in advance