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

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

The time is absolute, and expresses as a combination of frames per second, and the sub-frame resolution

Fields of Timecode

The number of frames per second

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]

Formats the value using the given formatter.

impl PartialEq for Division
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for Division
[src]

impl Clone for Division
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more