Classes | UGens > Filters > Nonlinear

Slew : Filter : PureUGen : UGen : AbstractFunction : Object

Slew rate limiter.
Source: Filter.sc

Description

Limits the slope of an input signal. The slope is expressed in units per second.

For smoothing out control signals, take a look at Lag and VarLag

Class Methods

Slew.ar(in: 0, up: 1, dn: 1, mul: 1, add: 0)

Slew.kr(in: 0, up: 1, dn: 1, mul: 1, add: 0)

Arguments:

in

The input signal.

up

Maximum upward slope in units per second.

dn

Maximum downward slope in units per second.

mul

Output will be multiplied by this value.

add

This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
{
    z = LFPulse.ar(800);
    [z, Slew.ar(z, 4000, 4000)]
}.plot)



Has the effect of removing transients and higher frequencies.
(
{

    z = Saw.ar(800,mul:0.2);
    Slew.ar(z,400,400)

}.play
)