SuperCollider CLASSES

InRange

Tests if a signal is within a given range.
Inherits from: UGen : AbstractFunction : Object
Subclasses: Clip, Fold, Schmidt, Wrap

Description

If in is ≥ lo and ≤ hi output 1.0, otherwise output 0.0. Output is initially zero.

Class Methods

*ar (in: 0, lo: 0, hi: 1)

*kr (in: 0, lo: 0, hi: 1)

*ir (in: 0, lo: 0, hi: 1)

Arguments:

in

Signal to be tested.

lo

Low threshold.

hi

High threshold.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

s.boot;

{ InRange.kr(SinOsc.kr(1, 0, 0.2), -0.15, 0.15)}.scope; // see the trigger

{ InRange.kr(SinOsc.kr(1, 0, 0.2), -0.15, 0.15) * BrownNoise.ar(0.1)}.scope; // trigger noise Burst