pub enum KeyNoteEvent {
On(u8),
Off,
AllOff,
AllKilled,
}
Expand description
MIDI events for a single key in a channel.
Variants§
On(u8)
Starts a new note voice with a velocity
Off
Signals off to a note voice
AllOff
Signals off to all note voices
AllKilled
Kills all note voices without decay
Trait Implementations§
Source§impl Clone for KeyNoteEvent
impl Clone for KeyNoteEvent
Source§fn clone(&self) -> KeyNoteEvent
fn clone(&self) -> KeyNoteEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeyNoteEvent
impl Debug for KeyNoteEvent
Source§impl PartialEq for KeyNoteEvent
impl PartialEq for KeyNoteEvent
impl Copy for KeyNoteEvent
impl StructuralPartialEq for KeyNoteEvent
Auto Trait Implementations§
impl Freeze for KeyNoteEvent
impl RefUnwindSafe for KeyNoteEvent
impl Send for KeyNoteEvent
impl Sync for KeyNoteEvent
impl Unpin for KeyNoteEvent
impl UnwindSafe for KeyNoteEvent
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