Enum augmented_midi::MIDIFileDivision
source · pub enum MIDIFileDivision {
TicksPerQuarterNote {
ticks_per_quarter_note: u16,
},
SMPTE {
format: u8,
ticks_per_frame: u8,
},
}
Variants§
TicksPerQuarterNote
The ticks_per_quarter_note
field contains how many MIDITrackEvent::delta_time
ticks
make up a quarter-note.
Represented by 0b0_000_0000_0000_0000
SMPTE
Indicates MIDITrackEvent::delta_time
are time based SMPTE offsets.
Represented by 0b1_000_0000_0000_0000
Trait Implementations§
source§impl Debug for MIDIFileDivision
impl Debug for MIDIFileDivision
source§impl PartialEq for MIDIFileDivision
impl PartialEq for MIDIFileDivision
source§fn eq(&self, other: &MIDIFileDivision) -> bool
fn eq(&self, other: &MIDIFileDivision) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MIDIFileDivision
impl StructuralEq for MIDIFileDivision
impl StructuralPartialEq for MIDIFileDivision
Auto Trait Implementations§
impl RefUnwindSafe for MIDIFileDivision
impl Send for MIDIFileDivision
impl Sync for MIDIFileDivision
impl Unpin for MIDIFileDivision
impl UnwindSafe for MIDIFileDivision
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