pub enum MidiCommand {
Play,
Stop,
NoteOn {
channel: Channel,
note: u8,
velocity: u8,
},
NoteOff {
channel: Channel,
note: u8,
},
ControlChange {
channel: Channel,
controller: u8,
value: u8,
},
AllNotesOff {
channel: Channel,
},
}Expand description
Musical commands sent as ordinary MIDI, independently of graph discovery.
Sending confirms submission to the transport, not application by the DSP. Receivers decide which channels and controllers they support.
Variants§
Play
MIDI Start: start or restart the sequencer.
Stop
MIDI Stop: stop the sequencer.
NoteOn
Strike a note with nonzero velocity.
Fields
NoteOff
Release a previously struck note.
ControlChange
Set a MIDI controller, including channel-mode controllers.
Fields
AllNotesOff
Send All Notes Off (CC123) on one channel.
Trait Implementations§
Source§impl Clone for MidiCommand
impl Clone for MidiCommand
impl Copy for MidiCommand
Source§impl Debug for MidiCommand
impl Debug for MidiCommand
impl Eq for MidiCommand
Source§impl PartialEq for MidiCommand
impl PartialEq for MidiCommand
impl StructuralPartialEq for MidiCommand
Auto Trait Implementations§
impl Forget for MidiCommand
impl Freeze for MidiCommand
impl Move for MidiCommand
impl RefUnwindSafe for MidiCommand
impl Send for MidiCommand
impl Sync for MidiCommand
impl Unpin for MidiCommand
impl UnsafeUnpin for MidiCommand
impl UnwindSafe for MidiCommand
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