pub enum AutomatonDef {
Lfo {
id: String,
frequency: f64,
amplitude: f64,
offset: f64,
waveform: LfoWaveform,
},
Envelope {
id: String,
envelope_type: EnvelopeType,
attack: f64,
decay: f64,
sustain: f64,
release: f64,
curve: f64,
},
Sequencer {
id: String,
steps: Vec<StepDef>,
play_mode: PlayMode,
tempo: f64,
},
NamedFunction {
id: String,
function_name: String,
params: HashMap<String, f64>,
},
Custom {
id: String,
type_name: String,
params: HashMap<String, ParamValue>,
},
}Expand description
Serializable description of a control automaton.
Variants§
Lfo
Envelope
Fields
§
envelope_type: EnvelopeTypeSequencer
NamedFunction
Custom
Custom automaton — dispatched via [AutomatonFactory].
Implementations§
Trait Implementations§
Source§impl Clone for AutomatonDef
impl Clone for AutomatonDef
Source§fn clone(&self) -> AutomatonDef
fn clone(&self) -> AutomatonDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AutomatonDef
impl RefUnwindSafe for AutomatonDef
impl Send for AutomatonDef
impl Sync for AutomatonDef
impl Unpin for AutomatonDef
impl UnsafeUnpin for AutomatonDef
impl UnwindSafe for AutomatonDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more