pub struct NoteOn {
pub channel: MidiChannel,
pub pitch: MidiNote,
pub velocity: f32,
pub note_id: NoteId,
pub tuning: f32,
pub length: i32,
}Expand description
A MIDI note-on event.
Fields§
§channel: MidiChannelMIDI channel (0-15).
pitch: MidiNoteNote number (0-127).
velocity: f32Velocity (0.0 to 1.0, where 0.0 is silent).
note_id: NoteIdUnique note ID for tracking this note instance.
tuning: f32Pitch offset in cents (-120.0 to +120.0) for microtonal/MPE support.
length: i32Note length in samples (0 = unknown/not provided).
Trait Implementations§
impl Copy for NoteOn
impl StructuralPartialEq for NoteOn
Auto Trait Implementations§
impl Freeze for NoteOn
impl RefUnwindSafe for NoteOn
impl Send for NoteOn
impl Sync for NoteOn
impl Unpin for NoteOn
impl UnwindSafe for NoteOn
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