Enum nom_midi::Division
[−]
[src]
pub enum Division { Metrical(u16), Timecode { fps: Fps, res: u8, }, }
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 = 25 * 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
Fields of Timecode
fps: Fps | The number of frames per second |
res: u8 | The sub-frame resolution Typical values are 4 (corresponding to MIDI Time Code), 8, 10, 80 (corresponding to SMPTE bit resolution), or 100. |
Trait Implementations
impl Debug for Division
[src]
impl PartialEq for Division
[src]
fn eq(&self, __arg_0: &Division) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Division) -> bool
This method tests for !=
.
impl Copy for Division
[src]
impl Clone for Division
[src]
fn clone(&self) -> Division
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more