Discarding numbers above certain range

Alex Borwick's icon

Hi all,

I'm wondering if someone can help solve what feels like a simple process. I'm processing a stream of numbers, and am trying to discard numbers if the change is too great, but without specifying discrete maximum/minimum values for the range.

I'm not sure that [split] is the best tool for this, as the max and min values have to be determined. What would be ideal is to say "if the change between one value and the next is greater than 100, then ignore. Otherwise, let the number pass".

Thanks in advance for any advice!
Alex.

double_UG's icon

Max Patch
Copy patch and select New From Clipboard in Max.

Alex Borwick's icon

@double_ug, thanks a million! That's perfect. Clever use of the [trigger]. Thanks for the fast response :-)