Filtering out a certain number from a group.

    May 14 2013 | 1:57 pm
    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 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 | 2:07 pm
      [sel 32]
      Use the second outlet to find all numbers that aren't 32.
    • May 15 2013 | 12:26 am
      zl.filter can also do it.
      32 is spacebar btw. You can use the [key] object to find out what everything is.
    • May 18 2013 | 4:31 am
      great! Thank you both very much for your help!!
    • May 18 2013 | 6:32 pm
      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.