Forums > MaxMSP

Limits

April 12, 2012 | 6:10 pm

Ok so this should be an easy one but I am stumped. I am bringing in numbers through a live feed, lets say -15 to 15. The numbers stay pretty constant, 5-10. I am trying to figure out a way to produce a bang every time the incoming numbers fall out side of the 5-10 range. Thanks in advance!


April 12, 2012 | 7:03 pm

[>], [< ], and [change] maybe?

Or else, for example, with [if]:

[if ($i1 < 5) || ($i1 > 10) then 1 else 0]

Then you can connect the output of [if] to a [button].

: )



MIB
April 14, 2012 | 10:54 am

[split 5 10]
5 – 10 will come out the left outlet everything else the right outlet… connect a [t b] to the right outlet to get your bangs


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