SuperCollider CLASSES

HPZ1

Two point difference filter
Inherits from: LPZ1 : Filter : PureUGen : UGen : AbstractFunction : Object

Description

A special case fixed filter. Implements the formula:

out(i) = 0.5 * (in(i) - in(i-1))

Which is a two point differentiator.

Class Methods

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

From superclass: LPZ1

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

From superclass: LPZ1

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;

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

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