In Processing, I set up the osc event method to receive a String from pd.
OscP5 oscP5;
String string;
int port = 12001;
void setup()
{
oscP5 = new OscP5(this, port);
}
void draw()
{
}
void oscEvent(OscMessage message)
{
if (message.addrPattern().equals("/string"))
{
string = message.arguments()[0].toString();
println(string);
}
}
How to send a string like "Hello, Processing!" to Processing?
I don't know
My Patch looks like this: