OnePole:
Filter:
Classes | UGens > Filters > Linear

OnePole : Filter : PureUGen : UGen : AbstractFunction : Object

One pole filter.
Source: Filter.sc
Subclasses: OneZero

Description

A one pole filter. Implements the formula:

out(i) = ((1 - abs(coef)) * in(i)) + (coef * out(i-1)).

Class Methods

OnePole.ar(in: 0, coef: 0.5, mul: 1, add: 0)

OnePole.kr(in: 0, coef: 0.5, mul: 1, add: 0)

Arguments:

in

The input signal.

coef

Feedback coefficient. Should be between -1 and +1

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

{ OnePole.ar(WhiteNoise.ar(0.5), 0.95) }.play

{ OnePole.ar(WhiteNoise.ar(0.5), -0.95) }.play

{ OnePole.ar(WhiteNoise.ar(0.5), Line.kr(-0.99, 0.99, 10)) }.play