Enum nom_midi::MetaEvent [] [src]

pub enum MetaEvent {
    SequenceNumber(u16),
    Text(String),
    Copyright(String),
    SequenceOrTrackName(String),
    InstrumentName(String),
    Lyric(String),
    Marker(String),
    CuePoint(String),
    ProgramName(String),
    DeviceName(String),
    MidiChannelPrefix(u8),
    MidiPort(u8),
    EndOfTrack,
    Tempo(u32),
    SMPTEOffset(SMPTEOffset),
    TimeSignature(TimeSignature),
    KeySignature(KeySignature),
    SequencerSpecificEvent(Vec<u8>),
    Unknown(u8Vec<u8>),
}

A special non-MIDI event

Variants

The sequence number (as would be used in a MIDI Cue message)

Free text, can include comments and other useful information, if that information doesn't naturally fit in another text-based field

A copyright notice

The name of the current sequence or track (depending on context)

The name of the current track The name of the instrument for this track (e.g. "Flute", "Piano", "Tenor", etc.)

A syllable or set of syllables to be sung as part of a vocal track.

A useful position-dependent note in the music (e.g. rehersal mark "A", loop point, section name)

A marker to indicate this event should be synchronized with some non-midi event, e.g. "car crash on screen", "actors leave stage", etc.

Indicates what patch or program name should be used by the immediately subsequent Bank Select and Program Change messages.

The name of the hardware device used to produce sounds for this track. Might be inserted for example if using a branded synth or keyboard to generate midi events.

Indicate which channel subsequent SysEx and Meta events apply to. Lasts until the next event of this type, or a normal MIDI event

Specify which port future MIDI event apply to. This exists to increase the 4-bit channel limit, and so it's functionality overlaps with channels

This event must be at the end of each track, and must not be anywhere else

Specifies the number of microseconds per quarter note for future MIDI events.

This is complicated and I don't understand it.

Set the time signature. If no time signature event occurs before a MIDI event the default is (4, 4)

Set the key signature. The default is C major.

Vendor specific events. I don't try to parse them - just return the data

An unrecognised event. To be future-compatible, just ignore these

Trait Implementations

impl Debug for MetaEvent
[src]

Formats the value using the given formatter.

impl PartialEq for MetaEvent
[src]

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

This method tests for !=.

impl Clone for MetaEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more