Divooka Reference

Wavetable

9 nodes

On this page 9

Frame Length

Function

Samples in one frame: 2048, the size Serum and Vital use, enough for 1024 harmonics.

Signature
FrameLength() -> Integer
int FrameLength()

Returns

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

Maximum Frames

Function

The most frames a table may hold.

Signature
MaximumFrames() -> Integer
int MaximumFrames()

Returns

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

Frame Count

Function

How many frames it morphs through.

Signature
FrameCount(Wavetable: Wavetable) -> Integer
int FrameCount(Wavetable Wavetable)

Parameters

nametypedefaultdescription
WavetableWavetable—

Returns

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

Name

Function

A name for the table, as it is shown.

Signature
Name(Wavetable: Wavetable) -> Text
string Name(Wavetable Wavetable)

Parameters

nametypedefaultdescription
WavetableWavetable—

Returns

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

To String

Function

This node carries no documentation.

Signature
ToString(Wavetable: Wavetable) -> Text
string ToString(Wavetable Wavetable)

Parameters

nametypedefaultdescription
WavetableWavetable—

Returns

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

From Clip

Function

A table cut from a recording: consecutive runs of Cycle Length samples, each one frame - the layout wavetable files from Serum and Vital use when Cycle Length is 2048. Each run is resampled to Wavetable.FrameLength, and the whole table is scaled so its loudest frame peaks at 1.

Signature
FromClip(clip: AudioBuffer, cycleLength: Integer) -> Wavetable
Wavetable FromClip(AudioBuffer clip, int cycleLength = 2048)

Parameters

nametypedefaultdescription
clipAudioBuffer—The recording, mixed to mono.
cycleLengthInteger2048Samples in one frame of the recording.

Returns

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

From Cycles

Function

A table from frames already drawn, each any length: resampled to Wavetable.FrameLength and used at the level given.

Signature
FromCycles(frames: IReadOnlyList<Low Accuracy Number Array>) -> Wavetable
Wavetable FromCycles(IReadOnlyList<float[]> frames)

Parameters

nametypedefaultdescription
framesIReadOnlyList<Low Accuracy Number Array>—Single cycles.

Returns

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

From Harmonics

Function

A table from the amplitudes of its harmonics: First is the first frame's, Last the last's, and the frames between morph from one spectrum to the other. The amplitudes are used as given - a single 1 is a sine of amplitude 1.

Signature
FromHarmonics -> Wavetable
    first: IReadOnlyList<Number>
    last: IReadOnlyList<Number>
    frames: Integer
Wavetable FromHarmonics(
    IReadOnlyList<double> first,
    IReadOnlyList<double> last,
    int frames = 1)

Parameters

nametypedefaultdescription
firstIReadOnlyList<Number>—The amplitude of the fundamental, the second harmonic, the third and so on.
lastIReadOnlyList<Number>—The last frame's amplitudes; the same as the first when not given.
framesInteger1How many frames from first to last.

Returns

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

Basic Shapes

Function

Four frames - sine, triangle, saw and square - so sweeping the position walks from the purest tone to the buzziest, the table most synthesizers open with.

Signature
BasicShapes() -> Wavetable
Wavetable BasicShapes()

Returns

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