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

Jan 29, 2012 at 9:54am

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

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

#61518
Jan 29, 2012 at 10:16am

Like that?

– Pasted Max Patch, click to expand. –
#221957
Jan 29, 2012 at 11:11am

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).

#221958
Jan 29, 2012 at 11:22am

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. –
#221959
Jan 29, 2012 at 2:00pm

Hi,

Thank you, the last option work fine.

Alexandre

#221960

You must be logged in to reply to this topic.