Forums > MaxMSP

Unpacking OSC messages


March 13, 2012 | 9:59 pm

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!

[attachment=188212,3540] [attachment=188212,3541]

Attachments:
  1. Capture10.PNG

Ad.
March 13, 2012 | 10:02 pm

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

March 13, 2012 | 10:10 pm

Thanks for direction!
Many thanks, Ad!

March 13, 2012 | 10:44 pm

OSC-route is exactly what was needed.

I am posting a successful patch for other support seekers.

Cheers, ad.
kavi

[attachment=188220,3542]

Attachments:
  1. Capture11.PNG
July 1, 2012 | 1:51 am

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!

July 1, 2012 | 2:08 am

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!

July 4, 2012 | 9:20 am

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

July 7, 2012 | 9:39 pm

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!

March 1, 2015 | 12:21 pm

Options – File preferences – add folder path

March 1, 2015 | 1:10 pm

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.

March 1, 2015 | 1:16 pm

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

March 1, 2015 | 2:48 pm

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 :)

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

– Pasted Max Patch, click to expand. –
March 1, 2015 | 2:55 pm

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?

Attachments:
  1. So-close
March 1, 2015 | 3:13 pm

yup:

– Pasted Max Patch, click to expand. –
March 1, 2015 | 4:51 pm

oh thank you :)

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