PresetBank

A preset bank is a collection of presets

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Aliases

getStateChunk
alias getStateChunk = getStateChunkFromCurrentState

Gets a state chunk to save the current state. The returned state chunk should be freed with free.

Functions

addNewDefaultPresetFromHost
void addNewDefaultPresetFromHost(string presetName)

Enqueue a new preset and load it

getBankChunk
ubyte[] getBankChunk()

Allocate and fill a bank chunk The resulting buffer should be freed with free.

getPresetChunk
ubyte[] getPresetChunk(int index)

Allocates and fill a preset chunk The resulting buffer should be freed with free.

getStateChunkFromPreset
ubyte[] getStateChunkFromPreset(int presetIndex)

Gets a state chunk that would be the current state _if_ preset presetIndex was made current first. So it's not changing the client state. The returned state chunk should be freed with free().

loadBankChunk
void loadBankChunk(ubyte[] chunk)

Parse a bank chunk and set parameters. May throw an Exception.

loadPresetChunk
void loadPresetChunk(int index, ubyte[] chunk)

Parse a preset chunk and set parameters. May throw an Exception.

loadStateChunk
void loadStateChunk(ubyte[] chunk)

Loads a chunk state, update current state. May throw an Exception.

Meta