pub enum Command {
Play,
Pause,
Stop,
SeekBeat(f64),
SeekBar(u32),
SeekSection(String),
SetLoopBars(u32, u32),
ClearLoop,
SetGain(f32),
Swap(Arc<Program>),
Stinger {
samples: Arc<[f32]>,
gain: f32,
},
}Expand description
One schedulable runtime command.
Variants§
Play
Start or resume the transport.
Pause
Hold the transport.
Stop
Stop and rewind.
SeekBeat(f64)
Seek to a beat (the song source follows, deterministically).
SeekBar(u32)
Seek to a bar.
SeekSection(String)
Seek to a named section’s first bar.
SetLoopBars(u32, u32)
Loop a bar range.
ClearLoop
Clear the loop.
SetGain(f32)
Master gain (ramped, click-free).
Swap(Arc<Program>)
Swap to a different program (crossfaded; the new program starts from its frame 0 with its own transport).
Stinger
Fire a one-shot over the song (already rendered — the render happened at schedule time, never on the render path).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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