pub struct NoteEvent {
pub lane_id: LaneId,
pub time: Tick,
pub duration: Tick,
pub pitch: Pitch,
pub velocity: u8,
pub channel: Channel,
}Expand description
A pitched note with duration, velocity, and channel.
Fields§
§lane_id: LaneIdLane the note plays on.
time: TickStart time in ticks.
duration: TickDuration in ticks.
pitch: PitchSounding pitch.
velocity: u8MIDI-style velocity (0-127).
channel: ChannelOutput channel.
Implementations§
Trait Implementations§
impl Eq 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