PresetBank

A preset bank is a collection of presets

Constructors

this
this(Client client, Preset[] presets_)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addNewDefaultPresetFromHost
void addNewDefaultPresetFromHost(string presetName)

Enqueue a new preset and load it

currentPreset
Preset currentPreset()
Undocumented in source. Be warned that the author may not have intended to support it.
currentPresetIndex
int currentPresetIndex()
Undocumented in source. Be warned that the author may not have intended to support 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.

getStateChunk
ubyte[] getStateChunk()

Gets a chunk with current state. The resulting buffer should be freed with free.

isValidPresetIndex
bool isValidPresetIndex(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
loadBankChunk
void loadBankChunk(ubyte[] chunk)

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

loadPresetByNameFromHost
void loadPresetByNameFromHost(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
loadPresetChunk
void loadPresetChunk(int index, ubyte[] chunk)

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

loadPresetFromHost
void loadPresetFromHost(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
loadStateChunk
void loadStateChunk(ubyte[] chunk)

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

numPresets
int numPresets()
Undocumented in source. Be warned that the author may not have intended to support it.
preset
Preset preset(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
putCurrentStateInCurrentPreset
void putCurrentStateInCurrentPreset()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

presets
AlignedBuffer!Preset presets;
Undocumented in source.

Meta