#[repr(C)]pub struct NoteEvent {
pub note: u8,
pub velocity: u8,
pub start_frame: u32,
pub end_frame: u32,
pub confidence: f32,
}Expand description
One transcribed note proposal.
start_frame is the index of the first frame of the note; end_frame is the
index one past its last frame (exclusive), so end_frame − start_frame is the
note’s duration in frames. note is the MIDI note number, velocity is a
1..=127 value derived from voicing confidence, and confidence is the mean
voicing confidence over the note’s frames.
Fields§
§note: u8§velocity: u8§start_frame: u32§end_frame: u32§confidence: f32Implementations§
Trait Implementations§
impl Copy for NoteEvent
impl StructuralPartialEq for NoteEvent
Auto Trait Implementations§
impl Freeze for NoteEvent
impl RefUnwindSafe for NoteEvent
impl Send for NoteEvent
impl Sync for NoteEvent
impl Unpin for NoteEvent
impl UnsafeUnpin for NoteEvent
impl UnwindSafe for NoteEvent
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