OFX_ChainPreset can store presets for OFX_Chain objects: A setting includes which functions are active (by name), and separate parameter settings for each active function.
First code examples:
dict where all OFX_ChainPreset objects are stored by name
make a OFX_ChainPreset for a key or a OFX_Chain
keyOrObj |
the proxychain
the proxy of the proxychain
the key by which this OFX_ChainPreset is stored.
which slot names will be stored if active
get and set which slots are not to be stored
the settings object that does storage
add and remove a setting by name
get current setting from proxy/chain
set current setting
setName |
name of setting |
absolute |
if true turns off slots not present in setting |
except |
write settings to disk
read settings from disk
setName |
get names of all settings
Here is a quick and dirty gui sketch for a OFX_ChainPresetGui, assuming you still have b and c preset from above around:
An example of a OFX_OutputFX / OFX_ChainPreset combination, using the same sound functions as above: