Using oscP5 to send/receive unique messages (addrPattern??)

edited September 2016 in Raspberry PI

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!

Tagged:

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

Sign In or Register to comment.