Forums > MaxMSP

Filtering out a certain number from a group.

May 14, 2013 | 6:57 am

Hi, I have a much more complicated problem with interpreting parsed data further down in the forum, but this is a simpler problem I’ve encountered whilst playing around trying to solve the more complicated problem myself.

I need to filter out all values returned as a 32 integer coming out of a zl.group object before it goes into the unpack object?

I have a stream of serial data, that is being converted to ascii, then grouped, then converted back to integer before going to an unpack object. It is returning allot of 32′s, which I’m assuming is the commas between the packets of ascii data… so I want to ignore or filter out the 32′s before the unpack object.

Sorry I’m new to max, I’m sure there is a simple object that gets rid of certain numbers.

 

Thank you very much for any help you can provide

 

 


May 14, 2013 | 7:07 am

[sel 32]

Use the second outlet to find all numbers that aren’t 32.

 


May 14, 2013 | 5:26 pm

zl.filter can also do it.

 

32 is spacebar btw. You can use the [key] object to find out what everything is.


May 17, 2013 | 9:31 pm

great! Thank you both very much for your help!!


May 18, 2013 | 11:32 am

depending on what the patch is like it could be useful to use the number 32 to chop the stream, in fact. Have that [sel 32] bang the zl group, for instance.


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