OscP5, receive an array

#1

Hi, I need to receive in Processing an array of letters from Pure Data with OSC.
Anybody has a clue on how to create the correct oscEvent?

Thanks

0 Likes

#2

Are you sending the array of letters all at once? In that case, just send a string message – that’s an array of letters.

In general, these two examples may be of help:

Argument:

example shows how to parse incoming osc messages “by hand”. http://www.sojamo.de/libraries/oscP5/examples/oscP5oscArgument/oscP5oscArgument.pde

Plug:

register methods in your sketch to which incoming
osc messages will be forwareded automatically without
having to parse them in the oscEvent method.
http://www.sojamo.de/libraries/oscP5/examples/oscP5plug/oscP5plug.pde

Plug is a bit more advanced to set up.

1 Like