InRange:
Filter:
Classes | UGens > Maths

InRange : UGen : AbstractFunction : Object

Tests if a signal is within a given range.
Source: Trig.sc
Subclasses: Clip, Fold, Schmidt, Wrap

Description

If lo ≤ in ≤ hi, output 1.0, otherwise output 0.0.

Class Methods

InRange.ar(in, lo: 0.0, hi: 1.0)

InRange.kr(in: 0.0, lo: 0.0, hi: 1.0)

InRange.ir(in: 0.0, lo: 0.0, hi: 1.0)

Arguments:

in

Signal to be tested. If InRange is running at audio rate, in must also be audio rate.

lo

Low threshold. Updated at control rate.

hi

High threshold. Updated at control rate.

Inherited class methods

Instance Methods

Inherited instance methods

Examples