pub struct TimedEvent {
pub tick: u64,
pub status: u8,
pub data1: u8,
pub data2: u8,
}Expand description
A single timed MIDI event: a status byte + up to two data bytes, at an
absolute tick position. All-integer and Copy, so it is torn-read-safe to
move through the super::event_ring::EventRing.
Fields§
§tick: u64Absolute position on the sequencer timeline, in PPQ ticks.
status: u8MIDI status byte (e.g. 0x90 note-on, channel in low nibble).
data1: u8First data byte (e.g. note number).
data2: u8Second data byte (e.g. velocity).
Implementations§
Trait Implementations§
Source§impl Clone for TimedEvent
impl Clone for TimedEvent
impl Copy for TimedEvent
Source§impl Debug for TimedEvent
impl Debug for TimedEvent
impl Eq for TimedEvent
Source§impl PartialEq for TimedEvent
impl PartialEq for TimedEvent
impl StructuralPartialEq for TimedEvent
Auto Trait Implementations§
impl Freeze for TimedEvent
impl RefUnwindSafe for TimedEvent
impl Send for TimedEvent
impl Sync for TimedEvent
impl Unpin for TimedEvent
impl UnsafeUnpin for TimedEvent
impl UnwindSafe for TimedEvent
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