Enum nom_midi::MidiEventType [] [src]

pub enum MidiEventType {
    NoteOff(Noteu8),
    NoteOn(Noteu8),
    PolyphonicPressure(Noteu8),
    Controller(u8u8),
    ProgramChange(u8),
    ChannelPressure(u8),
    PitchBend(u8u8),
}

A midi event

Normally, the majority of messages will be of this type. They are the key messages for starting and stopping sound, along with changing pitch.

Note that for all values, the top bit is not used, so the numbers will be interpreted the same for either u8 or i8. I use u8 here.

Variants

Stop sounding the given note

The second param is the release velocity

Start sounding the given note

The second param is the attack velocity

Apply aftertouch pressure to the given note

The second param is the amount of aftertouch

Set a controller to a value

The first param is the controller to set, and the second param is the value to set it to

Select the specified program

The second param is the program to set.

Allows all notes to have a specific aftertouch used as default, similar to PolyphonicPressure

Apply pitch bend to all notes

First param is less significant byte, and second is most significant byte. The value of 0x00 0x40 means 'no bend', less means bend down and more means bend up.

Trait Implementations

impl Debug for MidiEventType
[src]

Formats the value using the given formatter.

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

impl Clone for MidiEventType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more