pub enum MetaEvent {
EndOfTrack,
Tempo {
us_per_quarter: u32,
},
TimeSig {
num: u8,
den_pow2: u8,
clocks_per_click: u8,
thirty_seconds_per_quarter: u8,
},
KeySig {
sharps_flats: i8,
minor: bool,
},
Other(MetaBucket),
}Expand description
A meta event: track-scoped information that is not transmitted over the
wire, recognised types plus an Other escape hatch.
Variants§
EndOfTrack
End-of-track marker.
Tempo
Tempo change expressed in microseconds per quarter note.
TimeSig
Time signature.
Fields
KeySig
Key signature.
Fields
Other(MetaBucket)
Any other meta type, carried as a raw MetaBucket.
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