pub enum MidiMessageType {
NoteOn {
channel: u8,
note: u8,
velocity: u8,
},
NoteOff {
channel: u8,
note: u8,
velocity: u8,
},
ControlChange {
channel: u8,
controller: u8,
value: u8,
},
PitchBend {
channel: u8,
value: u16,
},
ProgramChange {
channel: u8,
program: u8,
},
ChannelPressure {
channel: u8,
pressure: u8,
},
Other,
}Expand description
Parsed MIDI message types we care about.
Variants§
NoteOn
NoteOff
ControlChange
PitchBend
ProgramChange
ChannelPressure
Other
Anything we don’t specifically parse.
Trait Implementations§
Source§impl Clone for MidiMessageType
impl Clone for MidiMessageType
Source§fn clone(&self) -> MidiMessageType
fn clone(&self) -> MidiMessageType
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 moreimpl Copy for MidiMessageType
Source§impl Debug for MidiMessageType
impl Debug for MidiMessageType
Source§impl PartialEq for MidiMessageType
impl PartialEq for MidiMessageType
impl StructuralPartialEq for MidiMessageType
Auto Trait Implementations§
impl Freeze for MidiMessageType
impl RefUnwindSafe for MidiMessageType
impl Send for MidiMessageType
impl Sync for MidiMessageType
impl Unpin for MidiMessageType
impl UnsafeUnpin for MidiMessageType
impl UnwindSafe for MidiMessageType
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