Parsing OSC messages – simple tutorial?

Jul 4, 2012 at 12:50am

Parsing OSC messages – simple tutorial?

I’m having the hardest time parsing what looks to be a very simple set of OSC messages, and I don’t know why. Can anyone point me to a REALLY simple tutorial/reference for how to parse the URL style messages so that I can output the numbers etc that are contained within them? I can see the messages perfectly in Max window, nothing I do seems to allow me to output them. I think this is because of something I am doing wrong with the /. Say I were to want the following message to be output in a max patch: /banana /fruit /0 0.445 – what arguments would I need to use to output everything separately INCLUDING the integer and the floating point at the end?

#39849
Jul 4, 2012 at 1:30am
#140527
Jul 4, 2012 at 1:36am

If you use [OSC-route] from CNMAT, it behaves pretty much the same as the [route] object. There is a tutorial in the ‘everything’ package to get you started – pretty much a piece of cake. Hope this helps.

#140528
Jul 4, 2012 at 9:35am

or:

– Pasted Max Patch, click to expand. –
#140529
Jul 4, 2012 at 1:17pm

For my purposes, the clarity and readability of using somethng like [OSC-route] is preferable – it displays the arguments used to route things, making it easier to remember and program efficiently. Your mileage may vary… ;)

#140530

You must be logged in to reply to this topic.