pub enum TrackEvent {
Midi {
status: u8,
data: Vec<u8>,
},
Meta(MetaEvent),
SysEx {
start: u8,
data: Vec<u8>,
},
}Expand description
A single track event: MIDI channel message, meta-event, or system-exclusive.
Variants§
Midi
Channel voice/mode message. status includes the channel nibble; data
holds the 1 or 2 data bytes that follow.
Meta(MetaEvent)
Meta-event (0xFF ...).
SysEx
System-exclusive. start is 0xF0 (normal) or 0xF7 (escape/continued);
data is the payload bytes that were length-prefixed in the file
(including any terminating 0xF7 for a complete 0xF0 message).
Trait Implementations§
Source§impl Clone for TrackEvent
impl Clone for TrackEvent
Source§impl Debug for TrackEvent
impl Debug for TrackEvent
impl Eq for TrackEvent
Source§impl PartialEq for TrackEvent
impl PartialEq for TrackEvent
impl StructuralPartialEq for TrackEvent
Auto Trait Implementations§
impl Freeze for TrackEvent
impl RefUnwindSafe for TrackEvent
impl Send for TrackEvent
impl Sync for TrackEvent
impl Unpin for TrackEvent
impl UnsafeUnpin for TrackEvent
impl UnwindSafe for TrackEvent
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