CVPreset:
Filter:
Conductor/Classes (extension) | Control

CVPreset
ExtensionExtension

Enables saved 'presets' of CVs and other values.

Description

CVPreset saves 'presets' for an array of CVs or other objects that respond to input and input_. CVInterpolator is a CVPreset also able to interpolate between settings.

Instance Methods

.items

the items to be saved/restored

.presets

the actual collections of different presets

.presetCV

CV determines which preset to load

NOTE: all control of preset selection and interpolation is done through presetCV, targetCV, and interpCV.

.value

Arguments:

v

Returns:

the contents of presets

.input

Arguments:

input

iterates over input, setting the input of corresponding cvs

Returns:

returns an array of input values for each of the elements of items

.set

Arguments:

index

recall the preset at index

.draw

draw the received using the function found at ~presetGUI