How Use OSC in MSP

Konstantinpeterson's icon

I want build something like reactable, no ich receive via UDP OSC Information and get some information but how i can get x and y Values?

have someone experience with that? Can someone give me Tipps, ideas maybe a patch which translate OSC information in x y Valeues and maybe other information?

i uploaded here my max patch, have someone any idea?

Thanks to all

3765.OSCviaTUIOstart02.maxpat
Max Patch
MJ's icon

what message you get containing the x y values?

if its something like "/1/nn/dd 34 67"
use the route object to get the two coords

'route /1/nn/dd'

the first outlet will give '34 67'
then with an unpack you can split the two

or if the format separate for the x and y
'/1/nn/dx 34' and '/1/nn/dy 67'

use

'route /1/nn/dx /1/nn/dy'

it wil give the x in first outlet and y in second