RedAutoScale:
Filter:
redSys/Classes (extension) | Red > redUGens

RedAutoScale
ExtensionExtension

scales an unknown signal to a known range

Description

Uses RunningMin and RunningMax as scaling range and can scale signals automatically to a specified range.

Class Methods

.ar

.kr

Arguments:

in

Input signal.

lo

Desired output range minimum.

hi

Desired output range maximum.

inLo

Predefined minimum input range.

inHi

Predefined maximum input range.

reset

A trigger that reset range.

Language side implementation

.new

Arguments:

lo

Desired output range minimum.

hi

Desired output range maximum.

inLo

Predefined minimum input range.

inHi

Predefined maximum input range.

Instance Methods

Language side implementation

.autoScale

Perform the calculation and output a value.

.lo

Get or set the desired output range minimum.

.hi

Get or set the desired output range maximum.

.inLo

Predefined minimum input range.

.inHi

Predefined maximum input range.

.min

Current minimum.

.max

Current maximum.

.reset

Reset the running -min and -max to the predefined input range.

Examples