pub enum ControlStrategy {
Absolute,
Modulation {
depth: f64,
},
}Expand description
How the automaton affects the target parameter
Variants§
Absolute
The automaton sets the parameter value directly.
The automaton output is expected in the [0, 1] range and is mapped to [min, max] of the target parameter.
Modulation
The automaton modulates around the base value.
The automaton output is expected in the [-1, 1] range.
Final value: base + mod_val * depth * (max - min),
clamped to [min, max].
Trait Implementations§
Source§impl Clone for ControlStrategy
impl Clone for ControlStrategy
Source§fn clone(&self) -> ControlStrategy
fn clone(&self) -> ControlStrategy
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 moreSource§impl Debug for ControlStrategy
impl Debug for ControlStrategy
Source§impl PartialEq for ControlStrategy
impl PartialEq for ControlStrategy
Source§fn eq(&self, other: &ControlStrategy) -> bool
fn eq(&self, other: &ControlStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ControlStrategy
impl StructuralPartialEq for ControlStrategy
Auto Trait Implementations§
impl Freeze for ControlStrategy
impl RefUnwindSafe for ControlStrategy
impl Send for ControlStrategy
impl Sync for ControlStrategy
impl Unpin for ControlStrategy
impl UnsafeUnpin for ControlStrategy
impl UnwindSafe for ControlStrategy
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