pub struct NoteData {
pub id: NoteID,
pub pitch: u8,
pub velocity: f32,
pub tuning: f32,
}
Expand description
Contains data common to both NoteOn
and NoteOff
events.
Fields§
§id: NoteID
Opaque ID of the note.
pitch: u8
Pitch of the note in terms of semitones higher than C-2
velocity: f32
0->1 velocity of the note on or off
tuning: f32
Microtuning of the note in cents.
Trait Implementations§
impl Copy for NoteData
impl StructuralPartialEq for NoteData
Auto Trait Implementations§
impl Freeze for NoteData
impl RefUnwindSafe for NoteData
impl Send for NoteData
impl Sync for NoteData
impl Unpin for NoteData
impl UnwindSafe for NoteData
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