OFX_ChainPreset:
Filter:
OutputFX/Classes (extension) | JITLib

OFX_ChainPreset
ExtensionExtension

a preset class for OFX_Chain

Description

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:

Class Methods

.all

dict where all OFX_ChainPreset objects are stored by name

.new

make a OFX_ChainPreset for a key or a OFX_Chain

Arguments:

keyOrObj

Instance Methods

.chain

the proxychain

.proxy

the proxy of the proxychain

.key

the key by which this OFX_ChainPreset is stored.

.slotsToStore

which slot names will be stored if active

.exceptedSlots

get and set which slots are not to be stored

.settings

the settings object that does storage

.addSet

.removeSet

add and remove a setting by name

.getCurr

get current setting from proxy/chain

.setCurr

set current setting

Arguments:

setName

name of setting

absolute

if true turns off slots not present in setting

except

.writeSettings

write settings to disk

.loadSettings

read settings from disk

.settingIndex

Arguments:

setName

.settingNames

get names of all settings

Examples

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: