Forums > MaxMSP

How to filter Max message (symbol, integrer…) ?


all
January 29, 2012 | 9:54 am

Hi,

How to obtain (or to separate), from a message with two types of datas (1 symbol and 1 integrer, ex : "aaa 98"), only the data symbol in 1 new message ("aaa") and the data integrer in 1 new message ("98").
Some is its position in the message +++ (I would like this work fine with message "aaa 98" or "98 aaa").

Does it exist a Max object to filter type of data in a message ?

Thank you

Alexandre


January 29, 2012 | 10:16 am

Like that?

– Pasted Max Patch, click to expand. –

January 29, 2012 | 11:11 am

To work both with "aaa 98" or "98 aaa" you could use unjoin or maybe regexp (to know which message is the int or the symbol).


January 29, 2012 | 11:22 am

Perhaps this will work for you. It doesn’t require any ordering of the data in the incoming message.

– Pasted Max Patch, click to expand. –


all
January 29, 2012 | 2:00 pm

Hi,

Thank you, the last option work fine.

Alexandre


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