#[repr(C)]pub struct PairedNote {
pub channel: u8,
pub note: u8,
pub velocity: u8,
pub start_tick: u64,
pub end_tick: u64,
}Expand description
A whole note recovered by pairing a note-on with its note-off.
Fields§
§channel: u8MIDI channel, 0..=15.
note: u8Note number, 0..=127.
velocity: u8Attack velocity from the note-on, 0..=127.
start_tick: u64Tick of the note-on.
end_tick: u64Tick of the matched note-off.
Implementations§
Source§impl PairedNote
impl PairedNote
Sourcepub const ZERO: PairedNote
pub const ZERO: PairedNote
An all-zero placeholder for initialising a caller-owned out array.
Trait Implementations§
Source§impl Clone for PairedNote
impl Clone for PairedNote
impl Copy for PairedNote
Source§impl Debug for PairedNote
impl Debug for PairedNote
impl Eq for PairedNote
Source§impl PartialEq for PairedNote
impl PartialEq for PairedNote
impl StructuralPartialEq for PairedNote
Auto Trait Implementations§
impl Freeze for PairedNote
impl RefUnwindSafe for PairedNote
impl Send for PairedNote
impl Sync for PairedNote
impl Unpin for PairedNote
impl UnsafeUnpin for PairedNote
impl UnwindSafe for PairedNote
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