#[repr(usize)]pub enum ControlParameter {
Expression = 0,
Pan = 1,
CutoffHz = 2,
ResonanceQ = 3,
PitchCents = 4,
PitchLfoDepth = 5,
CutoffLfoDepth = 6,
AmplitudeLfoDepth = 7,
PanLfoDepth = 8,
}Expand description
Supported continuous quantities. Structural instrument edits are not controls.
FromStr accepts the documented kebab-case names; unsupported names return
InvalidArgument, including voices, unison, waveform and envelope edits.
Variants§
Expression = 0
Linear multiplier after the voice envelope, 0..=1. Default one.
Pan = 1
Whole-voice linear pan, -1..=1; overrides the base pan, before its LFO.
CutoffHz = 2
Synthwave base cutoff in Hz, 1..=96000, before existing modulation/clamp.
ResonanceQ = 3
Synthwave filter Q, 0.5..=10.
PitchCents = 4
Synthwave additive oscillator pitch offset, -2400..=2400 cents.
PitchLfoDepth = 5
Existing pitch LFO depth, 0..=2400 cents; a configured LFO is required.
CutoffLfoDepth = 6
Existing cutoff LFO depth, 0..=9600 cents; a configured LFO is required.
AmplitudeLfoDepth = 7
Existing amplitude LFO depth, 0..=100 percent.
PanLfoDepth = 8
Existing pan LFO depth, 0..=100 percent.
Trait Implementations§
Source§impl Clone for ControlParameter
impl Clone for ControlParameter
Source§fn clone(&self) -> ControlParameter
fn clone(&self) -> ControlParameter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more