pub enum Division {
Metrical(u16),
Timecode {
fps: Fps,
res: u8,
},
}Expand description
The way time is divided in the midi track
Variants§
Metrical(u16)
This means the time is indicated by the number of sub-divisons of a quarter-note (a.k.a. crotchet). For example, 4 would mean the maximum resolution is semi-quavers.
A common choice is 96 = 2^5 * 3 allowing dotted notes down to hemidemisemiquavers
Timecode
The time is absolute, and expresses as a combination of frames per second, and the sub-frame resolution
Trait Implementations§
impl Copy for Division
impl StructuralPartialEq for Division
Auto Trait Implementations§
impl Freeze for Division
impl RefUnwindSafe for Division
impl Send for Division
impl Sync for Division
impl Unpin for Division
impl UnwindSafe for Division
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