Divooka Reference

Sound Font Bank

10 nodes

On this page 10

Name

Function

The font's name.

Signature
Name(Sound Font Bank: Sound Font Bank) -> Text
string Name(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

Path

Function

The file it came from, or null for a font made in memory.

Signature
Path(Sound Font Bank: Sound Font Bank) -> Text
string Path(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

Player

Function

The font as MeltySynth reads it, for rendering.

Signature
Player(Sound Font Bank: Sound Font Bank) -> SoundFont
SoundFont Player(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultSoundFont
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

Presets

Function

Every preset, by bank then program.

Signature
Presets(Sound Font Bank: Sound Font Bank) -> Sound Font Preset Array
SoundFontPreset[] Presets(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultSound Font Preset Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

Records

Function

The font as the format stores it, for listing and editing.

Signature
Records(Sound Font Bank: Sound Font Bank) -> SoundFontFile
SoundFontFile Records(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultSoundFontFile
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

Size In Bytes

Function

The size of the .sf2 file.

Signature
SizeInBytes(Sound Font Bank: Sound Font Bank) -> Large Integer
long SizeInBytes(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

To Bytes

Function

A copy of the .sf2 file's bytes.

Signature
ToBytes(Sound Font Bank: Sound Font Bank) -> Byte Array
byte[] ToBytes(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultByte Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

To String

Function

GeneralUser GS v2.0.3 · 287 presets · 30.8 MB.

Signature
ToString(Sound Font Bank: Sound Font Bank) -> Text
string ToString(SoundFontBank Sound Font Bank)

Parameters

nametypedefaultdescription
Sound Font BankSound Font Bank—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

From Bytes

Function

A bank over the bytes of an .sf2 file, checked to be one.

Signature
FromBytes(bytes: Byte Array, name: Text) -> Sound Font Bank
SoundFontBank FromBytes(byte[] bytes, string name)

Parameters

nametypedefaultdescription
bytesByte Array—The whole file.
nameText—What to call it; the file's own name (its INAM record) when empty.

Returns

resultSound Font Bank
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music

Load

Function

The bank for a file on disk, read once and shared while the file is unchanged.

Signature
Load(path: Text) -> Sound Font Bank
SoundFontBank Load(string path)

Parameters

nametypedefaultdescription
pathText—

Returns

resultSound Font Bank
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Sound Font Bank
Package
Music