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 duplicate 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 for MidiMessage
impl PartialEq for MidiMessage
impl Copy for MidiMessage
impl Eq for MidiMessage
impl StructuralPartialEq for MidiMessage
Auto Trait Implementations§
impl Freeze for MidiMessage
impl RefUnwindSafe for MidiMessage
impl Send for MidiMessage
impl Sync for MidiMessage
impl Unpin for MidiMessage
impl UnwindSafe for MidiMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more