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?
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.
----------begin_max5_patcher---------- 521.3ocyVFsaaBCEF9Z3ovxWyxvFHIrqZeNllpLgSScDXirMYoqpu6CaCsoa MiDZJZW.He7wG94S+9XdJL.WHO.ZL5anuiBBdJLHvExFHneb.tlcXSES6RCK ZqK.ENxO08RgQy+EXmhPWD2GtKItnBLtkPdMnr0LDk1GsgY17.Wr8NErw3ER ZdVWkPz7D6irX2.xhXzO5WiuLlGa.+BvbgAGgvELwV7KYwKcBVVr6KoGqWAq 1sN7sJNqB+hNTcwMf5NPvJpbYDam54vP6snykOvO6diCU0.GbeT31xltOPfu GPqiii+37ibZ9QSWYQFgl6dDudb.9tTKg7Ov1TPyLXcbU5ZZcHqmOuSMn0rs veYdHWBynWpcII6XlkPWj0YZxuX2BY400sbJXTyOT2ZfOUjPWR8rvgjUNazT PR17fjlN0+4xCxJuEwQhLxT4Q5UtgxI50J1I4BTxGuSS5nMYow9NM41cMizi M5nq2EOyBctWIq0OVWHqP2nAaqKiTg95rbhzJuyIKepmHcdDxsTbEW7m+ZiS Z13uEaZYqZyvKd3jOzqhqDzFtfY3RwwI8lbdfWVBtoGPVIWaOLn7zmFbtx4b TicuEhLaxgLlbxlU4PGSNK++RNqmUuSxHxIc1TSx43jmnZ765YMM6AktujNg z0VbmTYGtLxMjK7CcUDqf87g7yBsU64ve2hJBT. -----------end_max5_patcher-----------
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… ;)