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

RedOnePole
ExtensionExtension

one pole filter with separate up and down coefficients

Description

Very similar to OnePole but can have different coef going upward or downward and also a sclang method. Useful for smoothing sensor data.

Class Methods

.ar

.kr

Arguments:

in

The signal to be filtered.

up

Lag amount for increasing numbers.

down

Lag amount for decreasing numbers. If nil then set to same as up.

.new

Arguments:

up

Lag amount for increasing numbers.

down

Lag amount for decreasing numbers. If nil then set to same as up.

Instance Methods

.onepole

Arguments:

in

The values to be filtered.

.up

.down

Set or get the amount of lag when using the slide method.

Examples