Enum embedded_midi::MidiMessage[][src]

pub enum MidiMessage {
Show 17 variants NoteOff(ChannelNote, Value7), NoteOn(ChannelNote, Value7), KeyPressure(ChannelNote, Value7), ControlChange(ChannelControl, Value7), ProgramChange(ChannelProgram), ChannelPressure(Channel, Value7), PitchBendChange(Channel, Value14), QuarterFrame(QuarterFrame), SongPositionPointer(Value14), SongSelect(Value7), TuneRequest, TimingClock, Start, Continue, Stop, ActiveSensing, Reset,
}
Expand description

An enum with variants for all possible Midi messages.

Variants

NoteOff(ChannelNote, Value7)

Tuple Fields

1: Note
2: Value7

Note Off message

NoteOn(ChannelNote, Value7)

Tuple Fields

1: Note
2: Value7

Note on message

KeyPressure(ChannelNote, Value7)

Tuple Fields

1: Note
2: Value7

KeyPressure message for polyphonic aftertouch

ControlChange(ChannelControl, Value7)

Tuple Fields

2: Value7

Control change message

ProgramChange(ChannelProgram)

Tuple Fields

Program change message

ChannelPressure(Channel, Value7)

Tuple Fields

1: Value7

Channel pressure message for channel aftertouch

PitchBendChange(Channel, Value14)

Tuple Fields

1: Value14

Pitch bend message

QuarterFrame(QuarterFrame)

Tuple Fields

0: QuarterFrame

System exclusive message starts System exclusive data is received Signals the end of the system exclusive block Midi time code quarter frame

SongPositionPointer(Value14)

Tuple Fields

0: Value14

Set the song position pointer

SongSelect(Value7)

Tuple Fields

0: Value7

Specifies which sequence or song is to be played

TuneRequest

Tune all oscillators

TimingClock

Timing tick message

Start

Start message

Continue

Continue message

Stop

Stop message

ActiveSensing

Active sensing message

Reset

Reset message

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.