Divooka Reference

Audio Signals

38 nodes

On this page 38

Chorus

Function

A stereo chorus: the signal beside two copies of itself delayed by a few milliseconds that slowly drift, one side against the other, so one voice sounds like several.

Signature
Chorus -> Stereo Signal
    signal: Signal
    rate: Number
    depth: Number
    mix: Number
StereoSignal Chorus(
    Signal signal,
    double rate = 0.8,
    double depth = 0.003,
    double mix = 0.5)

Parameters

nametypedefaultdescription
signalSignal—What is thickened.
rateNumber0.8How fast the delays drift, cycles a second.
depthNumber0.003Seconds the delays drift by either way.
mixNumber0.5How much of the result is the drifting copies.

Returns

StereoStereo Signal
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Audio Signals
Package
Audio Processing

Compress Signal

Function

A compressor: everything over the threshold turned down by the ratio, with a soft knee and true attack and release times. Connect a sidechain to duck the signal under something else - a bass under a kick.

Signature
Compress -> Signal
    signal: Signal
    threshold: Number
    ratio: Number
    attack: Number
    release: Number
    knee: Number
    makeup: Number
    sidechain: Signal
Signal Compress(
    Signal signal,
    double threshold = -18,
    double ratio = 4,
    double attack = 0.01,
    double release = 0.1,
    double knee = 6,
    double makeup = 0,
    Signal sidechain)

Parameters

nametypedefaultdescription
signalSignal—What is compressed.
thresholdNumber-18dBFS where it starts.
ratioNumber4Decibels in for each decibel out over the threshold.
attackNumber0.01Seconds to clamp down.
releaseNumber0.1Seconds to let go.
kneeNumber6Decibels over which it eases in.
makeupNumber0Decibels added after.
sidechainSignal—What it listens to instead of the signal.

Returns

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

Constant Signal

Function

A value that does not change.

Signature
Constant(value: Number) -> Signal
Signal Constant(double value = 1)

Parameters

nametypedefaultdescription
valueNumber1The value.

Returns

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

Bitcrush Signal

Function

A bitcrusher: fewer bits and a lower sample rate, for the grit of an early sampler.

Signature
Crush(signal: Signal, bits: Number, rate: Number) -> Signal
Signal Crush(Signal signal, double bits = 8, double rate = 8000)

Parameters

nametypedefaultdescription
signalSignal—What is crushed.
bitsNumber8Bits kept, 1 to 24.
rateNumber8000Samples a second it is held at.

Returns

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

Delay Signal

Function

A signal through a delay line: echoes, or with a short moving time, chorus and flanging.

Signature
Delay -> Signal
    signal: Signal
    time: Number
    feedback: Number
    mix: Number
    timeModulation: Signal
Signal Delay(
    Signal signal,
    double time = 0.25,
    double feedback = 0.3,
    double mix = 0.3,
    Signal timeModulation)

Parameters

nametypedefaultdescription
signalSignal—What is delayed.
timeNumber0.25Seconds, up to 2.
feedbackNumber0.3How much of each echo comes back, 0 to just under 1.
mixNumber0.3How much of the result is echo; 1 is only the echo.
timeModulationSignal—Seconds added every sample.

Returns

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

Envelope

Function

An ADSR envelope following a gate - rising, settling, holding and dying away - for multiplying into a voice or wiring into a cutoff.

Signature
Envelope -> Signal
    gate: Signal
    attack: Number
    decay: Number
    sustain: Number
    release: Number
    hold: Number
Signal Envelope(
    Signal gate,
    double attack = 0.01,
    double decay = 0.1,
    double sustain = 0.7,
    double release = 0.3,
    double hold = 0.5)

Parameters

nametypedefaultdescription
gateSignal—When the note is held; a single note of Hold seconds when not connected.
attackNumber0.01Seconds to rise.
decayNumber0.1Seconds to fall to the sustain level.
sustainNumber0.7The level held, 0 to 1.
releaseNumber0.3Seconds to die away once the gate drops.
holdNumber0.5Seconds the single note is held when no gate is connected.

Returns

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

Filter Signal

Function

A signal through a state-variable filter whose cutoff can move every sample.

Signature
Filter -> Signal
    signal: Signal
    mode: Filter Mode
    cutoff: Number
    q: Number
    cutoffModulation: Signal
Signal Filter(
    Signal signal,
    FilterMode mode = FilterMode.Lowpass,
    double cutoff = 1000,
    double q = 0.707,
    Signal cutoffModulation)

Parameters

nametypedefaultdescription
signalSignal—What is filtered.
modeFilter ModeLowpassWhat passes.
cutoffNumber1000Hertz.
qNumber0.707Resonance: 0.707 is flat.
cutoffModulationSignal—Hertz added every sample.

Returns

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

FM Operator

Function

An FM operator, as on a DX7: a sine whose phase another signal pushes. Wire one operator, scaled by a modulation index, into another's modulation for bells, electric pianos and basses.

Signature
FmOperator -> Signal
    frequency: Number
    modulation: Signal
    index: Number
    feedback: Number
    frequencyModulation: Signal
Signal FmOperator(
    double frequency = 220,
    Signal modulation,
    double index = 1,
    double feedback = 0,
    Signal frequencyModulation)

Parameters

nametypedefaultdescription
frequencyNumber220Hertz.
modulationSignal—The modulator, in radians.
indexNumber1How hard the modulator pushes: the modulation index.
feedbackNumber0How much of its own output it feeds back, 0 to about 1.5; near 1.5 it is nearly a saw.
frequencyModulationSignal—Hertz added every sample.

Returns

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

Wavefolder

Function

A wavefolder: the louder the signal is driven, the more it folds back on itself and the brighter it gets, without getting louder.

Signature
Fold -> Signal
    signal: Signal
    gain: Number
    gainModulation: Signal
Signal Fold(
    Signal signal,
    double gain = 2,
    Signal gainModulation)

Parameters

nametypedefaultdescription
signalSignal—What is folded.
gainNumber2How hard it is driven; 1 leaves a full-scale signal alone.
gainModulationSignal—Added to the gain every sample.

Returns

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

Signal Gain

Function

A signal turned up or down.

Signature
Gain(signal: Signal, gain: Number) -> Signal
Signal Gain(Signal signal, double gain = 0.5)

Parameters

nametypedefaultdescription
signalSignal—The signal.
gainNumber0.5The factor.

Returns

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

Gate

Function

A gate: 1 while a note is held, 0 otherwise - once, or every period.

Signature
Gate(length: Number, period: Number, delay: Number) -> Signal
Signal Gate(
    double length = 0.25,
    double period = 0.5,
    double delay = 0)

Parameters

nametypedefaultdescription
lengthNumber0.25Seconds it is held.
periodNumber0.5Seconds from one note to the next; 0 for a single note.
delayNumber0Seconds before the first.

Returns

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

Granular

Function

Granular synthesis: a clip broken into short overlapping grains and played back from wherever position points - frozen when it stands still, stretched when it crawls, shifted in pitch without changing speed.

Signature
Granular -> Signal
    audio: AudioBuffer
    position: Number
    pitch: Number
    grainLength: Number
    density: Number
    jitter: Number
    positionModulation: Signal
    pitchModulation: Signal
    seed: Integer
Signal Granular(
    AudioBuffer audio,
    double position = 0,
    double pitch = 1,
    double grainLength = 0.08,
    double density = 25,
    double jitter = 0.01,
    Signal positionModulation,
    Signal pitchModulation,
    int seed = 1)

Parameters

nametypedefaultdescription
audioAudioBuffer—The source clip.
positionNumber0Where grains read from, 0 to 1 of the clip.
pitchNumber1Each grain's speed: 2 is an octave up.
grainLengthNumber0.08Seconds each grain lasts.
densityNumber25Grains a second; times the grain length, at most 128 overlapping.
jitterNumber0.01Seconds of random scatter in where each grain reads.
positionModulationSignal—Added to the position every sample: a slow ramp scrubs through the clip.
pitchModulationSignal—Added to the pitch.
seedInteger1Which scatter.

Returns

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

Ladder Filter

Function

A signal through a four-pole ladder lowpass, the classic synthesizer filter: 24 dB an octave, singing as the resonance rises.

Signature
Ladder -> Signal
    signal: Signal
    cutoff: Number
    resonance: Number
    cutoffModulation: Signal
Signal Ladder(
    Signal signal,
    double cutoff = 1000,
    double resonance = 0.3,
    Signal cutoffModulation)

Parameters

nametypedefaultdescription
signalSignal—What is filtered.
cutoffNumber1000Hertz.
resonanceNumber0.30 to 1; near 1 it rings at the cutoff.
cutoffModulationSignal—Hertz added every sample.

Returns

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

Smooth Signal

Function

A signal smoothed: it follows its input exponentially, all but a thousandth of the way in the time given.

Signature
Lag(signal: Signal, time: Number) -> Signal
Signal Lag(Signal signal, double time = 0.1)

Parameters

nametypedefaultdescription
signalSignal—What is smoothed.
timeNumber0.1Seconds.

Returns

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

LFO

Function

A low-frequency oscillator moving between two values: the hand that turns a knob.

Signature
Lfo -> Signal
    shape: Oscillator Shape
    rate: Number
    low: Number
    high: Number
Signal Lfo(
    OscillatorShape shape = OscillatorShape.Sine,
    double rate = 2,
    double low = -1,
    double high = 1)

Parameters

nametypedefaultdescription
shapeOscillator ShapeSineHow it moves.
rateNumber2Cycles a second.
lowNumber-1Where it bottoms out.
highNumber1Where it tops out.

Returns

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

Mix Signals

Function

Signals added together.

Signature
Mix(signals: Signal Array) -> Signal
Signal Mix(Signal[] signals)

Parameters

nametypedefaultdescription
signalsSignal Array—What is mixed.

Returns

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

Mix Stereo Signals

Function

Stereo signals added together, left to left and right to right.

Signature
MixStereo(signals: Stereo Signal Array) -> Stereo Signal
StereoSignal MixStereo(StereoSignal[] signals)

Parameters

nametypedefaultdescription
signalsStereo Signal Array—What is mixed.

Returns

StereoStereo Signal
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Audio Signals
Package
Audio Processing

Multiply Signals

Function

One signal times another: an envelope applied to a voice, or ring modulation.

Signature
Multiply(signal: Signal, by: Signal) -> Signal
Signal Multiply(Signal signal, Signal by)

Parameters

nametypedefaultdescription
signalSignal—One.
bySignal—The other.

Returns

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

Noise Signal

Function

Noise from -1 to 1, the same every run for the same seed.

Signature
Noise(color: Noise Color, seed: Integer) -> Signal
Signal Noise(NoiseColor color = NoiseColor.White, int seed = 1)

Parameters

nametypedefaultdescription
colorNoise ColorWhiteWhite, pink or brown - the same choice the Noise generator offers.
seedInteger1Which noise.

Returns

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

Oscillator

Function

An oscillator from -1 to 1. Saw, square and triangle are band-limited, so a high note stays clean.

Signature
Oscillator -> Signal
    shape: Oscillator Shape
    frequency: Number
    frequencyModulation: Signal
Signal Oscillator(
    OscillatorShape shape = OscillatorShape.Saw,
    double frequency = 220,
    Signal frequencyModulation)

Parameters

nametypedefaultdescription
shapeOscillator ShapeSawThe waveform.
frequencyNumber220Hertz.
frequencyModulationSignal—Hertz added every sample: vibrato, FM, a glide.

Returns

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

Pan Signal

Function

A signal placed between the speakers, as loud wherever it is put; a moving position sweeps it across.

Signature
Pan -> Stereo Signal
    signal: Signal
    position: Number
    positionModulation: Signal
StereoSignal Pan(
    Signal signal,
    double position = 0,
    Signal positionModulation)

Parameters

nametypedefaultdescription
signalSignal—What is placed.
positionNumber0-1 left, 0 centre, 1 right.
positionModulationSignal—Added to the position every sample: an LFO for auto-pan.

Returns

StereoStereo Signal
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Audio Signals
Package
Audio Processing

Pitch Shift Signal

Function

A signal raised or lowered in pitch as it plays, without being sped up or slowed down: a voice an octave up for a chipmunk, down for a giant, or a fifth up mixed with the original for a harmony.

Signature
PitchShift -> Signal
    signal: Signal
    semitones: Number
    window: Number
    semitonesModulation: Signal
Signal PitchShift(
    Signal signal,
    double semitones = 7,
    double window = 0.05,
    Signal semitonesModulation)

Parameters

nametypedefaultdescription
signalSignal—What is shifted.
semitonesNumber7How far; 12 is an octave up, -12 an octave down.
windowNumber0.05Seconds, 0.01 to 0.5.
semitonesModulationSignal—Semitones added every sample.

Returns

SignalSignal

Remarks

Works as it plays, adding no more delay than Window, so it suits a live input. A longer window warbles less on a held note and smears a sharp one more.

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

Pluck

Function

A plucked string: a burst of noise ringing in a delay line one period long, dying away high harmonics first. Every rise of the trigger plucks again.

Signature
Pluck -> Signal
    frequency: Number
    decay: Number
    brightness: Number
    trigger: Signal
    frequencyModulation: Signal
    seed: Integer
Signal Pluck(
    double frequency = 220,
    double decay = 2,
    double brightness = 0.5,
    Signal trigger,
    Signal frequencyModulation,
    int seed = 1)

Parameters

nametypedefaultdescription
frequencyNumber220Hertz.
decayNumber2Seconds for the note to fall 60 dB.
brightnessNumber0.50 to 1: a soft finger to a hard pick.
triggerSignal—When to pluck; once at the start when not connected.
frequencyModulationSignal—Hertz added, read at each pluck: wire a sequence of pitches here.
seedInteger1Which noise each pluck starts from.

Returns

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

Pulse

Function

A band-limited pulse, high for Width of each cycle; moving the width is pulse-width modulation.

Signature
Pulse -> Signal
    frequency: Number
    width: Number
    widthModulation: Signal
    frequencyModulation: Signal
Signal Pulse(
    double frequency = 110,
    double width = 0.5,
    Signal widthModulation,
    Signal frequencyModulation)

Parameters

nametypedefaultdescription
frequencyNumber110Hertz.
widthNumber0.50 to 1; one half is a square.
widthModulationSignal—Added to the width every sample.
frequencyModulationSignal—Hertz added every sample.

Returns

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

Ramp

Function

A straight line from one value to another, then held: a glide, a fade, a pitch drop.

Signature
Ramp(from: Number, to: Number, duration: Number) -> Signal
Signal Ramp(double from = 1, double to = 0, double duration = 1)

Parameters

nametypedefaultdescription
fromNumber1Where it starts.
toNumber0Where it ends.
durationNumber1Seconds it takes.

Returns

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

Render Signal

Function

A signal turned into a clip.

Signature
Render -> AudioBuffer
    signal: Signal
    duration: Number
    sampleRate: Integer
AudioBuffer Render(
    Signal signal,
    double duration = 2,
    int sampleRate = 44100)

Parameters

nametypedefaultdescription
signalSignal—The patch.
durationNumber2Seconds.
sampleRateInteger44100Samples a second.

Returns

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

Render Stereo Signal

Function

Two signals turned into the left and right of a stereo clip; what they share is computed once.

Signature
RenderStereo -> AudioBuffer
    left: Signal
    right: Signal
    duration: Number
    sampleRate: Integer
AudioBuffer RenderStereo(
    Signal left,
    Signal right,
    double duration = 2,
    int sampleRate = 44100)

Parameters

nametypedefaultdescription
leftSignal—The left side.
rightSignal—The right side.
durationNumber2Seconds.
sampleRateInteger44100Samples a second.

Returns

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

Render Stereo Mix

Function

A stereo signal turned into a clip.

Signature
RenderStereoMix -> AudioBuffer
    stereo: Stereo Signal
    duration: Number
    sampleRate: Integer
AudioBuffer RenderStereoMix(
    StereoSignal stereo,
    double duration = 2,
    int sampleRate = 44100)

Parameters

nametypedefaultdescription
stereoStereo Signal—The stereo signal.
durationNumber2Seconds.
sampleRateInteger44100Samples a second.

Returns

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

Reverb Signal

Function

A signal in a room: Freeverb's combs and allpasses, the tail as long as the room is big.

Signature
Reverb -> Signal
    signal: Signal
    roomSize: Number
    damping: Number
    mix: Number
Signal Reverb(
    Signal signal,
    double roomSize = 0.6,
    double damping = 0.5,
    double mix = 0.3)

Parameters

nametypedefaultdescription
signalSignal—What is reverberated.
roomSizeNumber0.60 to 1.
dampingNumber0.50 to 1: how quickly the highs die.
mixNumber0.3How much of the result is reverb.

Returns

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

Play Sample

Function

A clip played back as a signal, at a speed: 2 is an octave up, -1 backwards.

Signature
Sample -> Signal
    audio: AudioBuffer
    speed: Number
    loop: Truth
    speedModulation: Signal
Signal Sample(
    AudioBuffer audio,
    double speed = 1,
    bool loop = false,
    Signal speedModulation)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip, mixed to mono.
speedNumber1How fast.
loopTruthFalseWhether it starts again when it ends.
speedModulationSignal—Added to the speed every sample.

Returns

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

Sample And Hold

Function

A random value held until the next trigger, then a new one: the stepped random modulation of a sample-and-hold module. Connect a signal to sample something other than noise.

Signature
SampleAndHold -> Signal
    trigger: Signal
    signal: Signal
    seed: Integer
Signal SampleAndHold(
    Signal trigger,
    Signal signal,
    int seed = 1)

Parameters

nametypedefaultdescription
triggerSignal—When to take a new value; four times a second when not connected.
signalSignal—What is sampled; white noise when not connected.
seedInteger1Which noise.

Returns

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

Saturate

Function

Soft saturation: a hot signal rounds off instead of clipping, and gains harmonics as it is driven.

Signature
Saturate(signal: Signal, drive: Number) -> Signal
Signal Saturate(Signal signal, double drive = 2)

Parameters

nametypedefaultdescription
signalSignal—What is saturated.
driveNumber2How hard; 1 is gentle.

Returns

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

Slew Limiter

Function

A signal that can move only so fast: a glide between notes, a softened gate.

Signature
Slew(signal: Signal, rise: Number, fall: Number) -> Signal
Signal Slew(Signal signal, double rise = 0.1, double fall = 0.1)

Parameters

nametypedefaultdescription
signalSignal—What is limited.
riseNumber0.1Seconds to rise by one.
fallNumber0.1Seconds to fall by one.

Returns

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

Stereo Reverb

Function

A signal in a stereo room: the two sides' tails differ, so the room has width.

Signature
StereoReverb -> Stereo Signal
    signal: Signal
    roomSize: Number
    damping: Number
    mix: Number
    width: Number
StereoSignal StereoReverb(
    Signal signal,
    double roomSize = 0.6,
    double damping = 0.5,
    double mix = 0.3,
    double width = 1)

Parameters

nametypedefaultdescription
signalSignal—What is reverberated.
roomSizeNumber0.60 to 1.
dampingNumber0.50 to 1: how quickly the highs die.
mixNumber0.3How much of the result is reverb.
widthNumber10 to 1: how wide the tail spreads.

Returns

StereoStereo Signal
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Audio Signals
Package
Audio Processing

Wavetable From Clip

Function

A wavetable cut from a recording, one wave every cycle length - the layout of Serum and Vital wavetable files at 2048.

Signature
WavetableFromClip -> Wavetable
    audio: AudioBuffer
    cycleLength: Integer
Wavetable WavetableFromClip(
    AudioBuffer audio,
    int cycleLength = 2048)

Parameters

nametypedefaultdescription
audioAudioBuffer—The recording.
cycleLengthInteger2048Samples in each wave.

Returns

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

Wavetable From Harmonics

Function

A wavetable drawn from harmonic amplitudes: the first wave from one list, the last from another, and the waves between morphing from one to the other.

Signature
WavetableFromHarmonics -> Wavetable
    harmonics: Number Array
    lastHarmonics: Number Array
    frames: Integer
Wavetable WavetableFromHarmonics(
    double[] harmonics,
    double[] lastHarmonics,
    int frames = 16)

Parameters

nametypedefaultdescription
harmonicsNumber Array—Amplitudes of the fundamental, second harmonic, third and so on.
lastHarmonicsNumber Array—The last wave's amplitudes; the same as the first when not connected.
framesInteger16Waves from first to last.

Returns

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

Wavetable Oscillator

Function

A wavetable oscillator: a row of single-cycle waves played at a pitch and morphed by position, band-limited for every note so the top octave is as clean as the bottom.

Signature
WavetableOscillator -> Signal
    table: Wavetable
    frequency: Number
    position: Number
    positionModulation: Signal
    frequencyModulation: Signal
Signal WavetableOscillator(
    Wavetable table,
    double frequency = 110,
    double position = 0,
    Signal positionModulation,
    Signal frequencyModulation)

Parameters

nametypedefaultdescription
tableWavetable—The waves; sine, triangle, saw and square when not connected.
frequencyNumber110Hertz.
positionNumber0Where across the waves, 0 to 1.
positionModulationSignal—Added to the position every sample: an envelope or LFO sweeping the timbre.
frequencyModulationSignal—Hertz added every sample.

Returns

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

Stereo Width

Function

A stereo image narrowed or widened: 0 is mono, 1 unchanged, above 1 wider.

Signature
Width(stereo: Stereo Signal, width: Number) -> Stereo Signal
StereoSignal Width(StereoSignal stereo, double width = 1.5)

Parameters

nametypedefaultdescription
stereoStereo Signal—The stereo signal.
widthNumber1.5How wide.

Returns

StereoStereo Signal
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Audio Signals
Package
Audio Processing