Divooka Reference

Equalizer

6 nodes

On this page 6

Butterworth

Function

A Butterworth filter: maximally flat in the passband, rolling off at 6 dB per octave for each order.

Signature
Butterworth -> AudioBuffer
    audio: AudioBuffer
    cutoff: Number
    order: Integer
    side: Filter Side
AudioBuffer Butterworth(
    AudioBuffer audio,
    double cutoff = 1000,
    int order = 4,
    FilterSide side = FilterSide.LowPass)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to filter.
cutoffNumber1000The -3 dB frequency in Hz.
orderInteger41 to 16; each order adds 6 dB per octave of roll-off.
sideFilter SideLow passWhich side of the cutoff to keep.

Returns

AudioAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Equalizer
Package
Audio Processing

Chebyshev

Function

A Chebyshev type I filter: steeper than a Butterworth of the same order, paid for with ripple in the passband.

Signature
Chebyshev -> AudioBuffer
    audio: AudioBuffer
    cutoff: Number
    order: Integer
    ripple: Number
    side: Filter Side
AudioBuffer Chebyshev(
    AudioBuffer audio,
    double cutoff = 1000,
    int order = 4,
    double ripple = 1,
    FilterSide side = FilterSide.LowPass)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to filter.
cutoffNumber1000The passband edge in Hz.
orderInteger41 to 16.
rippleNumber1Passband ripple in dB; more ripple, steeper edge.
sideFilter SideLow passWhich side of the cutoff to keep.

Returns

AudioAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Equalizer
Package
Audio Processing

High Shelf

Function

Boosts or cuts everything above a frequency - a mixing desk's treble knob.

Signature
HighShelf -> AudioBuffer
    audio: AudioBuffer
    frequency: Number
    gain: Number
    slope: Number
AudioBuffer HighShelf(
    AudioBuffer audio,
    double frequency = 5000,
    double gain = 3,
    double slope = 1)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to equalize.
frequencyNumber5000The shelf's corner in Hz.
gainNumber3Boost or cut in dB.
slopeNumber1How steep the shelf's edge is.

Returns

AudioAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Equalizer
Package
Audio Processing

Inverse Chebyshev

Function

A Chebyshev type II (inverse Chebyshev) filter: flat in the passband, with a guaranteed attenuation in the stopband and ripple there instead.

Signature
InverseChebyshev -> AudioBuffer
    audio: AudioBuffer
    stopband: Number
    order: Integer
    attenuation: Number
    side: Filter Side
AudioBuffer InverseChebyshev(
    AudioBuffer audio,
    double stopband = 2000,
    int order = 4,
    double attenuation = 40,
    FilterSide side = FilterSide.LowPass)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to filter.
stopbandNumber2000The stopband edge in Hz, where the attenuation is reached.
orderInteger41 to 16.
attenuationNumber40The least attenuation in the stopband, in dB.
sideFilter SideLow passWhich side to keep.

Returns

AudioAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Equalizer
Package
Audio Processing

Low Shelf

Function

Boosts or cuts everything below a frequency - a mixing desk's bass knob.

Signature
LowShelf -> AudioBuffer
    audio: AudioBuffer
    frequency: Number
    gain: Number
    slope: Number
AudioBuffer LowShelf(
    AudioBuffer audio,
    double frequency = 200,
    double gain = 3,
    double slope = 1)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to equalize.
frequencyNumber200The shelf's corner in Hz.
gainNumber3Boost or cut in dB.
slopeNumber1How steep the shelf's edge is; 1 is the steepest without overshoot.

Returns

AudioAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Equalizer
Package
Audio Processing

Peaking EQ

Function

Boosts or cuts a band around a frequency - the bell of a parametric equalizer.

Signature
PeakingEq -> AudioBuffer
    audio: AudioBuffer
    frequency: Number
    gain: Number
    q: Number
AudioBuffer PeakingEq(
    AudioBuffer audio,
    double frequency = 1000,
    double gain = 3,
    double q = 1)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to equalize.
frequencyNumber1000The band's centre in Hz.
gainNumber3Boost (positive) or cut (negative) in dB.
qNumber1How narrow: 0.7 is broad and musical, 5 a surgical notch.

Returns

AudioAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Equalizer
Package
Audio Processing