value within a range consistantly for a certain amount of time

kjg's icon

hello,

any suggestions on how to do this somewhat elegantly?
I have a noisy stream of numbers and need a bang whenever the values are within a given range, for a certain amount of time.

i have a feeling this should be easy, but i've been away from the max front for a while, so any suggestions would be very much appreciated.

best regards,
klaas-jan

mzed's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Maybe like this:

kjg's icon

I think that will work. thank you! i forgot about the stop message to delay.
was messing around with a pipe and ==, but it didn't seem totally consistent.

thanks again,
klaas-jan