Edit
13 nodes
On this page 13
Concatenate
FunctionPlays one clip after another.
Concatenate -> AudioBuffer
first: AudioBuffer
second: AudioBufferAudioBuffer Concatenate(AudioBuffer first, AudioBuffer second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | AudioBuffer | — | The clip that plays first; the result takes its sample rate. |
| second | AudioBuffer | — | The clip that follows it. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Fade In
FunctionBrings a clip in from silence.
FadeIn -> AudioBuffer
audio: AudioBuffer
duration: Number
curve: Fade CurveAudioBuffer FadeIn(
AudioBuffer audio,
double duration = 0.5,
FadeCurve curve = FadeCurve.Smooth)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to fade. |
| duration | Number | 0.5 | How long the fade takes, in seconds; a fade longer than the clip covers the whole clip. |
| curve | Fade Curve | Smooth | The shape of the fade. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Fade Out
FunctionTakes a clip down to silence at its end.
FadeOut -> AudioBuffer
audio: AudioBuffer
duration: Number
curve: Fade CurveAudioBuffer FadeOut(
AudioBuffer audio,
double duration = 0.5,
FadeCurve curve = FadeCurve.Smooth)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to fade. |
| duration | Number | 0.5 | How long the fade takes, in seconds; a fade longer than the clip covers the whole clip. |
| curve | Fade Curve | Smooth | The shape of the fade. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Gain
FunctionMakes a clip louder or quieter by a number of decibels.
Gain(audio: AudioBuffer, decibels: Number) -> AudioBuffer
AudioBuffer Gain(AudioBuffer audio, double decibels = -6)
Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to change. |
| decibels | Number | -6 | How much louder (positive) or quieter (negative). |
Returns
| Audio | AudioBuffer |
Remarks
+6 dB roughly doubles the level and -6 dB roughly halves it; 0 dB leaves the clip exactly as it was. Anything pushed past full scale is clipped.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Mix
FunctionLayers one clip over another, so both are heard at once.
Mix -> AudioBuffer
first: AudioBuffer
second: AudioBuffer
offset: NumberAudioBuffer Mix(
AudioBuffer first,
AudioBuffer second,
double offset = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| first | AudioBuffer | — | The bottom layer; the result takes its sample rate. |
| second | AudioBuffer | — | The layer on top. |
| offset | Number | 0 | How far into the first clip the second one starts, in seconds. |
Returns
| Audio | AudioBuffer |
Remarks
The result lasts until whichever clip ends later. The levels add, so lower them first if the sum would clip.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Mix All
FunctionAdds any number of clips together, all starting at the same moment.
MixAll(clips: AudioBuffer Array) -> AudioBuffer
AudioBuffer MixAll(AudioBuffer[] clips)
Parameters
| name | type | default | description |
|---|---|---|---|
| clips | AudioBuffer Array | — | The clips; at least one. |
Returns
| Audio | AudioBuffer |
Remarks
The result is as long as the longest clip and has the most channels any clip has, at the first clip's sample rate. The levels add without being clipped, so the bands or parts a clip was divided into mix back to exactly that clip.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Normalize
FunctionTurns a clip up or down so that its loudest moment reaches a set level.
Normalize -> AudioBuffer
audio: AudioBuffer
peakDecibels: NumberAudioBuffer Normalize(
AudioBuffer audio,
double peakDecibels = -1)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to normalize. |
| peakDecibels | Number | -1 | The level the loudest sample should reach, in decibels below full scale; -1 leaves a little headroom. |
Returns
| Audio | AudioBuffer |
Remarks
A silent clip has no loudest moment and comes back unchanged.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Pad
FunctionAdds silence before and after a clip.
Pad -> AudioBuffer
audio: AudioBuffer
before: Number
after: NumberAudioBuffer Pad(
AudioBuffer audio,
double before = 0.5,
double after = 0.5)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to pad. |
| before | Number | 0.5 | Silence to add at the start, in seconds. |
| after | Number | 0.5 | Silence to add at the end, in seconds. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Repeat
FunctionPlays a clip several times in a row.
Repeat(audio: AudioBuffer, count: Integer) -> AudioBuffer
AudioBuffer Repeat(AudioBuffer audio, int count = 2)
Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to repeat. |
| count | Integer | 2 | How many times it plays in total. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Reverse
FunctionPlays a clip backwards.
Reverse(audio: AudioBuffer) -> AudioBuffer
AudioBuffer Reverse(AudioBuffer audio)
Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to reverse. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Subtract
FunctionTakes one clip away from another, sample by sample: what is in the first and not the second.
Subtract(first: AudioBuffer, second: AudioBuffer) -> AudioBuffer
AudioBuffer Subtract(AudioBuffer first, AudioBuffer second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | AudioBuffer | — | The clip taken from; the result takes its sample rate. |
| second | AudioBuffer | — | The clip taken away. |
Returns
| Difference | AudioBuffer |
Remarks
Peak Decibels of the difference says how far apart two clips are - a clip and the parts it was divided into, mixed back, differ only by float rounding, well below -100 dB.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Trim
FunctionKeeps one stretch of a clip and drops the rest.
Trim -> AudioBuffer
audio: AudioBuffer
start: Number
length: NumberAudioBuffer Trim(
AudioBuffer audio,
double start = 0,
double length = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to cut. |
| start | Number | 0 | Where the kept stretch begins, in seconds from the start. |
| length | Number | 1 | How long the kept stretch is, in seconds. |
Returns
| Audio | AudioBuffer |
Remarks
A stretch that runs past the end of the clip stops at the end; one that starts past the end is empty.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing
Trim Silence
FunctionRemoves the quiet stretches at the start and the end of a clip.
TrimSilence -> AudioBuffer
audio: AudioBuffer
thresholdDecibels: NumberAudioBuffer TrimSilence(
AudioBuffer audio,
double thresholdDecibels = -50)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to tidy. |
| thresholdDecibels | Number | -50 | How quiet counts as silence, in decibels below full scale. |
Returns
| Audio | AudioBuffer |
Remarks
A sample counts as quiet when every channel is below the threshold. A clip that is quiet throughout comes back empty.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Edit
- Package
- Audio Processing