regexp filter /z message

Sep 11, 2011 at 9:55pm

regexp filter /z message

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

#58845
Sep 12, 2011 at 7:49am

Can’t you just use something like this:

– Pasted Max Patch, click to expand. –
#211493
Sep 12, 2011 at 10:37am

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

#211494
Sep 12, 2011 at 11:16am

Is this better?

– Pasted Max Patch, click to expand. –
#211495
Sep 12, 2011 at 11:29am

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

#211496

You must be logged in to reply to this topic.