SuperCollider CLASSES

HPZ2

Two zero fixed midcut.
Inherits from: LPZ2 : Filter : PureUGen : UGen : AbstractFunction : Object

Description

A special case fixed filter. Implements the formula:

out(i) = 0.25 * (in(i) - (2 * in(i - 1)) + in(i - 2)).

Class Methods

*ar (in: 0, mul: 1, add: 0)

From superclass: LPZ2

*kr (in: 0, mul: 1, add: 0)

From superclass: LPZ2

Arguments:

in

The input signal.

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

// Compare:

{ WhiteNoise.ar(0.25) }.play;

{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;

// HPZ2 is useful to detect changes in a signal:
// see also HPZ1
(
{
    var changingSignal = LFNoise0.ar(1000);
    var hpz1 = HPZ2.ar(changingSignal);
    [hpz1, hpz1 > 0]
}.plot
);