Forums > MaxMSP

regexp filter /z message

September 11, 2011 | 9:55 pm

hi

on touchosc, i used the z fonction for have contact information.
when i active the z fonction, i have a message like this : (for an XYpad)
/control/xypad (Xpos) (Ypos)
/control/xypad/z 0/1

the fonction is apply on all graphic object.
if i don’t want used the z message (like on fader) it’s necessary to filter it with object osc-route /z at the end. but it’s necessary to do it on all object receive.

i search to filtered the …../z message on the roots, certainly with a regexp object. but i don’t find the way…

a short exemple

– Pasted Max Patch, click to expand. –

thanks
f


September 12, 2011 | 7:49 am

Can’t you just use something like this:

– Pasted Max Patch, click to expand. –

September 12, 2011 | 10:37 am

hi

yes i know this way but i don’t like to used this kind of process because i have lot of receive from touchosc and necessitate to repeat the route /Z at the end for each grahic object receive.
i’d like to filter it (filter message whose contain /z) at the roots and just used /z whose i can process

how make to filter a message like :/control/xypad/z $1

it’s stupid by touchosc to don’t have possibility to define by graphic object if yes or not the z message is send…

thanks
f


September 12, 2011 | 11:16 am

Is this better?

– Pasted Max Patch, click to expand. –

September 12, 2011 | 11:29 am

hi patrick

thanks… it’s this kind of stuff…
i repply the patch because you send it with a space in the regexp equation and don’t run correctly.
here the correction

– Pasted Max Patch, click to expand. –

best
f


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