Divooka Reference

Time and Pitch

4 nodes

On this page 4

Capture Noise Profile

Function

Learns what a clip's background noise sounds like, from a stretch of it with nothing else - room tone, hiss, hum - for Reduce Noise to take out.

Signature
CaptureNoiseProfile(noise: AudioBuffer) -> Noise Profile Data
NoiseProfileData CaptureNoiseProfile(AudioBuffer noise)

Parameters

nametypedefaultdescription
noiseAudioBuffer—A clip of the noise alone; half a second or more.

Returns

ProfileNoise Profile Data
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Time and Pitch
Package
Audio Processing

Pitch Shift

Function

Raises or lowers a clip's pitch without changing its length.

Signature
PitchShift -> AudioBuffer
    audio: AudioBuffer
    semitones: Number
    windowSize: Integer
AudioBuffer PitchShift(
    AudioBuffer audio,
    double semitones = 3,
    int windowSize = 2048)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to shift.
semitonesNumber3How far: 12 is an octave up, -7 a fifth down; -24 to 24.
windowSizeInteger2048The analysis window in samples, a power of two.

Returns

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

Reduce Noise

Function

Takes a captured noise out of a clip by spectral subtraction, the way the Audio Editor's noise reduction does.

Signature
ReduceNoise -> AudioBuffer
    audio: AudioBuffer
    profile: Noise Profile Data
    reduction: Number
    sensitivity: Number
AudioBuffer ReduceNoise(
    AudioBuffer audio,
    NoiseProfileData profile,
    double reduction = 12,
    double sensitivity = 6)

Parameters

nametypedefaultdescription
audioAudioBuffer—The noisy clip.
profileNoise Profile Data—The noise, from Capture Noise Profile on a clip at the same rate and channel count.
reductionNumber12How far in dB to turn the noise down.
sensitivityNumber6How far in dB above the noise a sound must be to be kept untouched.

Returns

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

Time Stretch

Function

Makes a clip longer or shorter without changing its pitch.

Signature
TimeStretch -> AudioBuffer
    audio: AudioBuffer
    factor: Number
    windowSize: Integer
AudioBuffer TimeStretch(
    AudioBuffer audio,
    double factor = 1.5,
    int windowSize = 2048)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to stretch.
factorNumber1.5The new length over the old: 2 is twice as long, 0.5 half; 0.25 to 4.
windowSizeInteger2048The analysis window in samples, a power of two: larger keeps tones smoother, smaller keeps drums sharper.

Returns

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