We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello!
I'm trying to send a unique osc message depending on what "button" I click in my sketch. Each button will trigger a different animation in another sketch.
I'm not sure what the best way is to send unique, specific osc messages -- is it with OscPlug? OscArgument? Having trouble understanding addrPattern and how to set and then extract a specific int or string to OscMessage
Thanks!
Answers
There are some examples in this link that is a good start: http://www.sojamo.de/libraries/oscP5/
You can see how the address pattern plays a role for message selection and you can see how the OscPlug function works. In general, when you instantiate a message you will assign it an address pattern (a label in other words). To this message you can attach values at your desire. When you read the messages (in the second sketch for example), you need to check for the label of the message to process it accordingly.
I hope this helps,
Kf