pub enum MidiEventKind {
NoteOn {
channel: u8,
key: u8,
velocity: f32,
},
NoteOff {
channel: u8,
key: u8,
velocity: f32,
},
Raw([u8; 3]),
}Variants§
NoteOn
velocity in 0..=1.
NoteOff
Raw([u8; 3])
Any other 3-byte MIDI message (CC, pitch bend, program change…).
Trait Implementations§
Source§impl Clone for MidiEventKind
impl Clone for MidiEventKind
impl Copy for MidiEventKind
Source§impl Debug for MidiEventKind
impl Debug for MidiEventKind
Source§impl PartialEq for MidiEventKind
impl PartialEq for MidiEventKind
impl StructuralPartialEq for MidiEventKind
Auto Trait Implementations§
impl Freeze for MidiEventKind
impl RefUnwindSafe for MidiEventKind
impl Send for MidiEventKind
impl Sync for MidiEventKind
impl Unpin for MidiEventKind
impl UnsafeUnpin for MidiEventKind
impl UnwindSafe for MidiEventKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more