pub enum MetaEvent {
SequenceNumber(u16),
TrackName(Vec<u8>),
EndOfTrack,
Tempo(u32),
TimeSignature {
numerator: u8,
denominator_pow2: u8,
clocks_per_click: u8,
thirty_seconds_per_quarter: u8,
},
KeySignature {
sharps: i8,
minor: bool,
},
Unknown {
meta_type: u8,
data: Vec<u8>,
},
}Expand description
A parsed SMF meta-event payload.
Unknown carries any meta type this module does not decode structurally
(text, marker, SMPTE offset, sequencer-specific, …) so serialization is
byte-identical to the source.
Variants§
SequenceNumber(u16)
0x00 — optional 16-bit sequence number.
TrackName(Vec<u8>)
0x03 — track name (raw bytes; SMF text is not guaranteed UTF-8).
EndOfTrack
0x2F — end of track (zero-length).
Tempo(u32)
0x51 — tempo in microseconds per quarter note (24-bit range).
TimeSignature
0x58 — time signature.
Fields
KeySignature
0x59 — key signature.
Fields
Unknown
Any other meta type, preserved verbatim.
Trait Implementations§
impl Eq for MetaEvent
impl StructuralPartialEq for MetaEvent
Auto Trait Implementations§
impl Freeze for MetaEvent
impl RefUnwindSafe for MetaEvent
impl Send for MetaEvent
impl Sync for MetaEvent
impl Unpin for MetaEvent
impl UnsafeUnpin for MetaEvent
impl UnwindSafe for MetaEvent
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