Forums > MaxMSP

How can I filter out a words?

December 12, 2012 | 2:34 pm

Hello patchers,
I’m having troubles sorting out this thing. I need to filter out a message or braking it down:
This is the message i have: /1/fader2
I need it to become like "/1/" "fader" "2". Three separated words so I can route them into different objects! My idea is that a good way would be something that filter out 2 of the 3 words, I tried "zl filter" but no luck…

Any help would be much appreciated!!


December 12, 2012 | 3:26 pm

Not sure what you really need but maybe you could check "sprintf" object, might help.



December 12, 2012 | 5:15 pm
— Pasted Max Patch, click to expand. —

my approach, (i am NOT an expert )
Its quite the same, with nicala danet’s, but with one regexp

December 12, 2012 | 6:16 pm

Thanks a lot guys! Nicolas your way works great!

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

Forums > MaxMSP