Enum midi_types::MidiMessage
source · pub enum MidiMessage {
Show 17 variants
NoteOff(Channel, Note, Value7),
NoteOn(Channel, Note, Value7),
KeyPressure(Channel, Note, Value7),
ControlChange(Channel, Control, Value7),
ProgramChange(Channel, Program),
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(Channel, Note, Value7)
Note Off message
NoteOn(Channel, Note, Value7)
Note on message
KeyPressure(Channel, Note, Value7)
KeyPressure message for polyphonic aftertouch
ControlChange(Channel, Control, Value7)
Control change message
ProgramChange(Channel, Program)
Program change message
ChannelPressure(Channel, Value7)
Channel pressure message for channel aftertouch
PitchBendChange(Channel, Value14)
Pitch bend message
QuarterFrame(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)
Set the song position pointer
SongSelect(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
Implementations§
Trait Implementations§
source§impl Clone for MidiMessage
impl Clone for MidiMessage
source§fn clone(&self) -> MidiMessage
fn clone(&self) -> MidiMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MidiMessage
impl Debug for MidiMessage
source§impl PartialEq<MidiMessage> for MidiMessage
impl PartialEq<MidiMessage> for MidiMessage
source§fn eq(&self, other: &MidiMessage) -> bool
fn eq(&self, other: &MidiMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.