pub struct SequencerAutomaton { /* private fields */ }Expand description
Секвенсор автомат
Implementations§
Source§impl SequencerAutomaton
impl SequencerAutomaton
Sourcepub fn with_tempo(self, bpm: f64) -> Self
pub fn with_tempo(self, bpm: f64) -> Self
Установить темп
Sourcepub fn with_interpolation(self, interpolate: bool) -> Self
pub fn with_interpolation(self, interpolate: bool) -> Self
Включить/выключить интерполяцию
Sourcepub fn with_range(self, range: Range) -> Self
pub fn with_range(self, range: Range) -> Self
Установить диапазон
Trait Implementations§
Source§impl Automaton for SequencerAutomaton
impl Automaton for SequencerAutomaton
Source§type State = SequencerState
type State = SequencerState
State type.
Source§fn step(
&self,
time: Time,
_action: &Self::Action,
state: &Self::State,
) -> (Self::State, Option<f64>)
fn step( &self, time: Time, _action: &Self::Action, state: &Self::State, ) -> (Self::State, Option<f64>)
Advance the automaton by one time step. Read more
Source§fn initial_state(&self) -> Self::State
fn initial_state(&self) -> Self::State
Return the initial state.
Source§fn extract_value(&self, state: &Self::State) -> f64
fn extract_value(&self, state: &Self::State) -> f64
Extract the output value from the state.
Source§impl Clone for SequencerAutomaton
impl Clone for SequencerAutomaton
Source§fn clone(&self) -> SequencerAutomaton
fn clone(&self) -> SequencerAutomaton
Returns a duplicate of the value. Read more
1.0.0 · 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 SequencerAutomaton
impl RefUnwindSafe for SequencerAutomaton
impl Send for SequencerAutomaton
impl Sync for SequencerAutomaton
impl Unpin for SequencerAutomaton
impl UnsafeUnpin for SequencerAutomaton
impl UnwindSafe for SequencerAutomaton
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