pub enum Message {
Show 29 variants
NoteOff(NoteMessage),
NoteOn(NoteMessage),
PolyPressure(NoteMessage),
Control(ControlChangeValue),
ProgramChange(ProgramChangeValue),
ChannelPressure(ChannelPressureMessage),
PitchBend(PitchBendMessage),
AllSoundsOff(Channel),
ResetAllControllers(Channel),
LocalControlOff(Channel),
LocalControlOn(Channel),
AllNotesOff(Channel),
OmniModeOff(Channel),
OmniModeOn(Channel),
MonoModeOn(MonoModeOnValue),
PolyModeOn(Channel),
MidiTimeCodeQuarterFrame(MidiTimeCodeQuarterFrameMessage),
SongPositionPointer(SongPositionPointerMessage),
SongSelect(SongSelectMessage),
TuneRequest,
EndOfSysexFlag,
TimingClock,
Undefined1,
Start,
Continue,
Stop,
Undefined2,
ActiveSensing,
SystemReset,
}
Expand description
A MIDI message is made up of an eight-bit status byte which is generally followed by one or two data bytes. There are a number of different types of MIDI messages. At the highest level, MIDI messages are classified as being either Channel Messages or System Messages. Channel messages are those which apply to a specific Channel, and the Channel number is included in the status byte for these messages. System messages are not Channel specific, and no Channel number is indicated in their status bytes.
Variants§
NoteOff(NoteMessage)
NoteOn(NoteMessage)
PolyPressure(NoteMessage)
Control(ControlChangeValue)
ProgramChange(ProgramChangeValue)
ChannelPressure(ChannelPressureMessage)
PitchBend(PitchBendMessage)
AllSoundsOff(Channel)
ResetAllControllers(Channel)
LocalControlOff(Channel)
LocalControlOn(Channel)
AllNotesOff(Channel)
OmniModeOff(Channel)
OmniModeOn(Channel)
MonoModeOn(MonoModeOnValue)
PolyModeOn(Channel)
MidiTimeCodeQuarterFrame(MidiTimeCodeQuarterFrameMessage)
SongPositionPointer(SongPositionPointerMessage)
SongSelect(SongSelectMessage)
TuneRequest
EndOfSysexFlag
TimingClock
Undefined1
Start
Continue
Stop
Undefined2
ActiveSensing
SystemReset
Trait Implementations§
source§impl Ord for Message
impl Ord for Message
source§impl PartialOrd for Message
impl PartialOrd for Message
impl Copy for Message
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)