Forums > MaxMSP

Separate data that is received via udp

May 20 2010 | 1:55 pm


I am working in max with udp messages.

I get a message:
/rigidbody/1 1 2 3
/rigidbody/1 3 4 5

What object in max can help me to capture the first line of the message and access it separately.. SO, i can map the data from first line to something and the same with with the data that comes in the second line.

Thanks in advance!!

May 24 2010 | 3:46 am

You could send each kind of message on different ports and have separate udpreceive objects per port to deal with the different circumstances.

I suspect however that there is a more logical way to format your data such that you could use the route object, for example, to handle your incoming messages. If you supplied the sending patch it would be easier to diagnose.

I am also queasy about the use of forward slashes in your message. If you need them as part of a filepath, it would be better to use sprintf on the incoming data.

May 24 2010 | 8:17 am

It seems that you are working with some OSC-typed message, right? Take a look at these objects:

In that case if you want data to go to different objects, make sure the url part is different. Then you can route on the url part.

To have things go different directions you need some distinction so your patch knows what to do.

Like, Rock G said, it might be a bit easier if we knew a bit more about what you are trying to achieve.

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

Forums > MaxMSP