Forums > MaxMSP

Parsing OSC messages – simple tutorial?

July 4, 2012 | 12:50 am

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?


July 4, 2012 | 1:30 am

This might be helpful.
Example 24: TouchOSC data via wireless UDP.


July 4, 2012 | 1:36 am

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.


July 4, 2012 | 9:35 am

or:

– Pasted Max Patch, click to expand. –

July 4, 2012 | 1:17 pm

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… ;)


Viewing 5 posts - 1 through 5 (of 5 total)