A UGen that tests if a signal is within a given range. If in >= lo
and
in <= hi
, outputs 1.0, otherwise outputs 0.0.
===Examples===
// detect whether mouse is in specific horizontal range
play {
val x = MouseX.kr
InRange.kr(x, 0.4, 0.6) * PinkNoise.ar(0.3)
}
- See also
- Companion
- class
Type members
Value members
Concrete methods
- Value Params
- hi
upper margin of test range (inclusive)
- in
input signal to test
- lo
lower margin of test range (inclusive)
- Value Params
- hi
upper margin of test range (inclusive)
- in
input signal to test
- lo
lower margin of test range (inclusive)