Unpacking OSC messages

kavi's icon

Hello,
I am trying to unpack OSC messages which are picked up from Mind Your OSCs software designed for EPOC EEG headset.

I am using udpreceive object and it receives all messages correctly. I don't know how to unpack incoming values and stream them into separate flonum outputs.

I tried to use unpack object and added 20 float outputs and it gave me error.

I added two images, first one is showing incoming OSC messages and second one is my stupid trial to unpack them.

Any help much appreciated,

Thanks!

3541.Capture10.PNG
PNG
Ad.'s icon

route object or OSC-ROUTE from http://cnmat.berkeley.edu/downloads should help you
ad

kavi's icon

Thanks for direction!
Many thanks, Ad!

kavi's icon

OSC-route is exactly what was needed.

I am posting a successful patch for other support seekers.

Cheers, ad.
kavi

3542.Capture11.PNG
PNG
warp1's icon

Hello there

I've followed your image to the letter but it doesn't work for me. I seem to have an extra number that you don't in my max window. It looks like this: print: /EXP/SMIRK_RIGHT/0 0.

So there is this extra number ahead of the floating point. How would I add that to my OSC-route in order to make it pass the floating point message? I'm not very familiar with how OSC works. Any help much appreciated!

warp1's icon

Hello there

I've followed your image to the letter but it doesn't work for me. I seem to have an extra number (always a 0) that you don't in my max window. It looks like this: print: /EXP/SMIRK_RIGHT/0 0. This is apparently the 'user number'.

So there is this extra number ahead of the floating point. How would I add that to my OSC-route in order to make it pass the floating point message? I'm not very familiar with how OSC works. Any help much appreciated!

kavi's icon

heya, could you please screencapture your patch together with Max window and see if i can help you.
.))

jimluis's icon

Hello there, for some reason I have been unable to install the route object or OSC-ROUTE on max. I already downloaded it but I do not know how to incorporate in max as an object! Can you help me with that please. I need to do exactly what Kevi did! I need some instructions if it is possible! I appreciate it!

michael nielsen's icon

Options - File preferences - add folder path

Wetterberg's icon

I'd hope JIMLUIS solved this already?

Also, to anyone else watching, you do NOT need OSC-ROUTE or similar externals to handle OSC in Max. It will do this handily in vanilla Max. It has been able to do this for a very long time now.

michael nielsen's icon

could you post a patch receiving and routing OSC without OSC-route?

Wetterberg's icon

well normal route doesn't mind OSC messages... I'd honestly be happy to help with it, but it's a bit of a... broad question :)

Max Patch
Copy patch and select New From Clipboard in Max.

For instance, this is perfectly fine OSC reception from the JazzMutant and ipad Lemur versions.

michael nielsen's icon

Thank you. I have tried another method for my OSC routing. But I am doing something wrong. Can you spot in the screenshot what it is?

So-close.jpg
jpg
Wetterberg's icon
Max Patch
Copy patch and select New From Clipboard in Max.

yup:

michael nielsen's icon

oh thank you :)

ZeroValue's icon

thank you for this one !

tada's icon

Just I want to contribute - in case you have a more complex message,like

/grid7/5 0.745689

the route object cannot extract [route /grid7] the number 5

What you can do instead is to use regexp like in the patch

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

Why not just remove slashes ?