Enum nom_midi::MidiFormat [] [src]

pub enum MidiFormat {
    SingleTrack,
    MultipleTrack(u16),
    MultipleSong(u16),
}

Represents the different formats of a midi file

The parameter is the number of tracks

Variants

There is only 1 track

There are multiple tracks to be played concurrently

There are multiple songs that can be played in any order/combination (e.g. a set of sequences for a drum machine)

Methods

impl MidiFormat
[src]

How many tracks are there in the format

Trait Implementations

impl Debug for MidiFormat
[src]

Formats the value using the given formatter.

impl PartialEq for MidiFormat
[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 MidiFormat
[src]

impl Clone for MidiFormat
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more