#[repr(u8)]pub enum ShortMessageType {
Show 23 variants
NoteOff = 128,
NoteOn = 144,
PolyphonicKeyPressure = 160,
ControlChange = 176,
ProgramChange = 192,
ChannelPressure = 208,
PitchBendChange = 224,
SystemExclusiveStart = 240,
TimeCodeQuarterFrame = 241,
SongPositionPointer = 242,
SongSelect = 243,
SystemCommonUndefined1 = 244,
SystemCommonUndefined2 = 245,
TuneRequest = 246,
SystemExclusiveEnd = 247,
TimingClock = 248,
SystemRealTimeUndefined1 = 249,
Start = 250,
Continue = 251,
Stop = 252,
SystemRealTimeUndefined2 = 253,
ActiveSensing = 254,
SystemReset = 255,
}
Expand description
The most fine-grained classification of short MIDI messages.
Variants can be converted to and from u8
. In case of channel messages, the u8
value
corresponds to the status byte with channel 0. In case of system messages, the u8
value
corresponds to the complete status byte.
Variants§
NoteOff = 128
NoteOn = 144
PolyphonicKeyPressure = 160
ControlChange = 176
ProgramChange = 192
ChannelPressure = 208
PitchBendChange = 224
SystemExclusiveStart = 240
TimeCodeQuarterFrame = 241
SongPositionPointer = 242
SongSelect = 243
SystemCommonUndefined1 = 244
SystemCommonUndefined2 = 245
TuneRequest = 246
SystemExclusiveEnd = 247
TimingClock = 248
SystemRealTimeUndefined1 = 249
Start = 250
Continue = 251
Stop = 252
SystemRealTimeUndefined2 = 253
ActiveSensing = 254
SystemReset = 255
Implementations§
Source§impl ShortMessageType
impl ShortMessageType
Sourcepub fn super_type(&self) -> FuzzyMessageSuperType
pub fn super_type(&self) -> FuzzyMessageSuperType
Returns the corresponding fuzzy super type.
Trait Implementations§
Source§impl Clone for ShortMessageType
impl Clone for ShortMessageType
Source§fn clone(&self) -> ShortMessageType
fn clone(&self) -> ShortMessageType
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 ShortMessageType
impl Debug for ShortMessageType
Source§impl From<ShortMessageType> for u8
impl From<ShortMessageType> for u8
Source§fn from(enum_value: ShortMessageType) -> Self
fn from(enum_value: ShortMessageType) -> Self
Converts to this type from the input type.
Source§impl Hash for ShortMessageType
impl Hash for ShortMessageType
Source§impl Ord for ShortMessageType
impl Ord for ShortMessageType
Source§fn cmp(&self, other: &ShortMessageType) -> Ordering
fn cmp(&self, other: &ShortMessageType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ShortMessageType
impl PartialEq for ShortMessageType
Source§impl PartialOrd for ShortMessageType
impl PartialOrd for ShortMessageType
Source§impl TryFrom<u8> for ShortMessageType
impl TryFrom<u8> for ShortMessageType
Source§type Error = TryFromPrimitiveError<ShortMessageType>
type Error = TryFromPrimitiveError<ShortMessageType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ShortMessageType
impl TryFromPrimitive for ShortMessageType
impl Copy for ShortMessageType
impl Eq for ShortMessageType
impl StructuralPartialEq for ShortMessageType
Auto Trait Implementations§
impl Freeze for ShortMessageType
impl RefUnwindSafe for ShortMessageType
impl Send for ShortMessageType
impl Sync for ShortMessageType
impl Unpin for ShortMessageType
impl UnwindSafe for ShortMessageType
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