pub struct SequencerAutomaton { /* private fields */ }Expand description
Sequencer automaton
Implementations§
Source§impl SequencerAutomaton
impl SequencerAutomaton
Sourcepub fn with_tempo(self, bpm: f64) -> Self
pub fn with_tempo(self, bpm: f64) -> Self
Set tempo
Sourcepub fn with_interpolation(self, interpolate: bool) -> Self
pub fn with_interpolation(self, interpolate: bool) -> Self
Enable/disable interpolation
Sourcepub fn with_range(self, range: Range) -> Self
pub fn with_range(self, range: Range) -> Self
Set the range
Trait Implementations§
Source§impl Automaton for SequencerAutomaton
impl Automaton for SequencerAutomaton
Source§type Internal = (usize, f64, i8, u64)
type Internal = (usize, f64, i8, u64)
The automaton’s internal state, carried across step invocations.
Source§fn step(
&self,
internal: &mut Self::Internal,
_current: &ParamValue,
time: Time,
_action: &Self::Action,
) -> ParamValue
fn step( &self, internal: &mut Self::Internal, _current: &ParamValue, time: Time, _action: &Self::Action, ) -> ParamValue
Advances the automaton by one step, producing a new output value. Read more
Source§fn initial_internal(&self) -> Self::Internal
fn initial_internal(&self) -> Self::Internal
Returns the automaton’s initial internal state (at time zero).
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 (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 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