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

appendStateChunkFromCurrentState
void appendStateChunkFromCurrentState(Vec!ubyte chunk)

Gets a state chunk to save the current state, but provide a Vec to append to.

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(const(ubyte)[] chunk, bool* err)

Loads a chunk state, update current state. Return: *err set to true in case of error.

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