Effects
9 nodes
On this page 9
Band Pass
FunctionKeeps a band of frequencies around a centre and turns down the rest - a telephone, a megaphone.
BandPass -> AudioBuffer
audio: AudioBuffer
center: Number
resonance: NumberAudioBuffer BandPass(
AudioBuffer audio,
double center = 1000,
double resonance = 2)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to filter. |
| center | Number | 1000 | The middle of the band that is kept, in hertz. |
| resonance | Number | 2 | How narrow the band is, from 0.5 (wide) to 20 (very narrow). |
Returns
| Audio | AudioBuffer |
Remarks
The centre frequency passes at its own level whatever the resonance; resonance only decides how narrow the band is.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
Bit Crush
FunctionReduces a clip's resolution and sample rate on purpose, for the gritty sound of an early games console.
BitCrush -> AudioBuffer
audio: AudioBuffer
bits: Integer
sampleRate: IntegerAudioBuffer BitCrush(
AudioBuffer audio,
int bits = 6,
int sampleRate = 8000)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to crush. |
| bits | Integer | 6 | How many bits each sample keeps, from 2 (very harsh) to 16 (untouched). |
| sampleRate | Integer | 8000 | The rate the clip is held to, in samples per second; it cannot be above the clip's own. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
Distort
FunctionOverdrives a clip so its peaks round off - from warm saturation to a fuzzy distortion.
Distort(audio: AudioBuffer, drive: Number) -> AudioBuffer
AudioBuffer Distort(AudioBuffer audio, double drive = 4)
Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to distort. |
| drive | Number | 4 | How hard the clip is pushed, from about 1 (gentle) to 50 (fuzz). |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
Echo
FunctionRepeats a clip back to itself after a delay, each repeat quieter than the last.
Echo -> AudioBuffer
audio: AudioBuffer
delay: Number
feedback: Number
mix: NumberAudioBuffer Echo(
AudioBuffer audio,
double delay = 0.25,
double feedback = 0.4,
double mix = 0.4)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to echo. |
| delay | Number | 0.25 | Time between repeats, in seconds. |
| feedback | Number | 0.4 | How much of each repeat comes back again, from 0 (one repeat) to 0.95 (a long trail). |
| mix | Number | 0.4 | How loud the repeats are against the original, from 0 (none) to 1 (repeats only). |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
High Pass
FunctionKeeps the frequencies above a cutoff and turns down everything below it - a thinner, brighter sound, like a small radio.
HighPass -> AudioBuffer
audio: AudioBuffer
cutoff: Number
resonance: NumberAudioBuffer HighPass(
AudioBuffer audio,
double cutoff = 1000,
double resonance = 0.707)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to filter. |
| cutoff | Number | 1000 | The frequency where the filter starts to bite, in hertz. |
| resonance | Number | 0.707 | How sharply the filter peaks at the cutoff, from 0.5 to 20; 0.707 is flat, higher values ring. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
Low Pass
FunctionKeeps the frequencies below a cutoff and turns down everything above it - a duller, warmer, more distant sound.
LowPass -> AudioBuffer
audio: AudioBuffer
cutoff: Number
resonance: NumberAudioBuffer LowPass(
AudioBuffer audio,
double cutoff = 1000,
double resonance = 0.707)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to filter. |
| cutoff | Number | 1000 | The frequency where the filter starts to bite, in hertz. |
| resonance | Number | 0.707 | How sharply the filter peaks at the cutoff, from 0.5 to 20; 0.707 is flat, higher values ring. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
Notch
FunctionCuts out a narrow band of frequencies around a centre and leaves the rest - for removing a hum or a whistle.
Notch -> AudioBuffer
audio: AudioBuffer
center: Number
resonance: NumberAudioBuffer Notch(
AudioBuffer audio,
double center = 1000,
double resonance = 2)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to filter. |
| center | Number | 1000 | The frequency to remove, in hertz. |
| resonance | Number | 2 | How narrow the cut is, from 0.5 (wide) to 20 (very narrow). |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
Reverb
FunctionPuts a clip in a room: a wash of reflections that makes it sound further away and less dry.
Reverb -> AudioBuffer
audio: AudioBuffer
roomSize: Number
damping: Number
mix: NumberAudioBuffer Reverb(
AudioBuffer audio,
double roomSize = 0.8,
double damping = 0.35,
double mix = 0.3)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to place. |
| roomSize | Number | 0.8 | How long the room rings, from 0 (a cupboard) to 0.98 (a cathedral). |
| damping | Number | 0.35 | How quickly the high frequencies die in the room, from 0 (hard walls) to 0.99 (soft furnishings). |
| mix | Number | 0.3 | How much of the room is heard against the original, from 0 to 1. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing
Ring Modulate
FunctionMultiplies a clip by a tone, turning it metallic - at low frequencies a voice becomes a robot's.
RingModulate -> AudioBuffer
audio: AudioBuffer
frequency: NumberAudioBuffer RingModulate(
AudioBuffer audio,
double frequency = 50)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to modulate. |
| frequency | Number | 50 | The modulating tone, in hertz; 30 to 80 for a robot voice, a few hundred for a bell-like clang. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Audio Processing