Time and Pitch
4 nodes
On this page 4
Capture Noise Profile
FunctionLearns 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
| name | type | default | description |
|---|---|---|---|
| noise | AudioBuffer | — | A clip of the noise alone; half a second or more. |
Returns
| Profile | Noise 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
FunctionRaises or lowers a clip's pitch without changing its length.
Signature
PitchShift -> AudioBuffer
audio: AudioBuffer
semitones: Number
windowSize: IntegerAudioBuffer PitchShift(
AudioBuffer audio,
double semitones = 3,
int windowSize = 2048)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to shift. |
| semitones | Number | 3 | How far: 12 is an octave up, -7 a fifth down; -24 to 24. |
| windowSize | Integer | 2048 | The analysis window in samples, a power of two. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Time and Pitch
- Package
- Audio Processing
Reduce Noise
FunctionTakes 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: NumberAudioBuffer ReduceNoise(
AudioBuffer audio,
NoiseProfileData profile,
double reduction = 12,
double sensitivity = 6)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The noisy clip. |
| profile | Noise Profile Data | — | The noise, from Capture Noise Profile on a clip at the same rate and channel count. |
| reduction | Number | 12 | How far in dB to turn the noise down. |
| sensitivity | Number | 6 | How far in dB above the noise a sound must be to be kept untouched. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Time and Pitch
- Package
- Audio Processing
Time Stretch
FunctionMakes a clip longer or shorter without changing its pitch.
Signature
TimeStretch -> AudioBuffer
audio: AudioBuffer
factor: Number
windowSize: IntegerAudioBuffer TimeStretch(
AudioBuffer audio,
double factor = 1.5,
int windowSize = 2048)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to stretch. |
| factor | Number | 1.5 | The new length over the old: 2 is twice as long, 0.5 half; 0.25 to 4. |
| windowSize | Integer | 2048 | The analysis window in samples, a power of two: larger keeps tones smoother, smaller keeps drums sharper. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Time and Pitch
- Package
- Audio Processing