Divooka Reference

Studio Effects

4 nodes

On this page 4

Phaser

Function

Sweeps notches through a clip's spectrum with a chain of allpass stages - the swirl of a phaser pedal.

Signature
Phaser -> AudioBuffer
    audio: AudioBuffer
    rate: Number
    minimum: Number
    maximum: Number
    stages: Integer
    wet: Number
AudioBuffer Phaser(
    AudioBuffer audio,
    double rate = 0.5,
    double minimum = 200,
    double maximum = 2000,
    int stages = 4,
    double wet = 0.5)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to process.
rateNumber0.5Sweeps per second.
minimumNumber200The lowest frequency the notches reach, in Hz.
maximumNumber2000The highest, in Hz.
stagesInteger4Allpass stages: more stages, more notches.
wetNumber0.5How much of the effect is mixed in.

Returns

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

Studio Reverb

Function

Places a clip in a room: a Schroeder network of damped combs and diffusing allpasses, with the pre-delay and stereo width a studio reverb offers, and its tail rendered past the clip's end.

Signature
StudioReverb -> AudioBuffer
    audio: AudioBuffer
    roomScale: Number
    decay: Number
    damping: Number
    wet: Number
    dry: Number
    preDelay: Number
    width: Number
    tail: Number
AudioBuffer StudioReverb(
    AudioBuffer audio,
    double roomScale = 1,
    double decay = 1.6,
    double damping = 0.4,
    double wet = 0.25,
    double dry = 0.8,
    double preDelay = 20,
    double width = 1,
    double tail = 1.5)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to reverberate.
roomScaleNumber1The room's size, from 0.5 (a booth) to 2 (a hall).
decayNumber1.6Seconds for the tail to fall away.
dampingNumber0.4How quickly high frequencies die in the tail, 0 to 1.
wetNumber0.25Level of the reverberation.
dryNumber0.8Level of the original.
preDelayNumber20Milliseconds before the reverberation starts.
widthNumber1Stereo width of the tail, 0 (mono) to 1.
tailNumber1.5Seconds added after the clip for the tail; 0 keeps the clip's length.

Returns

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

Vocoder

Function

Makes one clip speak with another's voice: the modulator's spectral envelope, band by band, shapes the carrier - a synth pad that talks, a voice made of chords.

Signature
Vocoder -> AudioBuffer
    carrier: AudioBuffer
    modulator: AudioBuffer
    bands: Integer
AudioBuffer Vocoder(
    AudioBuffer carrier,
    AudioBuffer modulator,
    int bands = 16)

Parameters

nametypedefaultdescription
carrierAudioBuffer—What is heard: usually a harmonically rich synth or chord.
modulatorAudioBuffer—What shapes it: usually speech; heard over the carrier's length.
bandsInteger16Frequency bands; more bands, more intelligible.

Returns

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

Wah

Function

Sweeps a resonant band-pass up and down a clip - the vowel of a wah pedal.

Signature
Wah -> AudioBuffer
    audio: AudioBuffer
    rate: Number
    minimum: Number
    maximum: Number
    q: Number
    wet: Number
AudioBuffer Wah(
    AudioBuffer audio,
    double rate = 1,
    double minimum = 300,
    double maximum = 2500,
    double q = 2,
    double wet = 1)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to process.
rateNumber1Sweeps per second.
minimumNumber300The lowest centre frequency, in Hz.
maximumNumber2500The highest, in Hz.
qNumber2How sharp the resonance is.
wetNumber1How much of the effect is mixed in.

Returns

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