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.
getStateChunkFromCurrentState
ubyte[] getStateChunkFromCurrentState()

Gets a state chunk to save the current state. The returned state chunk 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().

isValidPresetIndex
bool isValidPresetIndex(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
loadPresetByNameFromHost
void loadPresetByNameFromHost(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
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
inout(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
Vec!Preset presets;
Undocumented in source.

Meta