[][src]Enum helgoboss_midi::ShortMessageType

#[repr(u8)]pub enum ShortMessageType {
    NoteOff,
    NoteOn,
    PolyphonicKeyPressure,
    ControlChange,
    ProgramChange,
    ChannelPressure,
    PitchBendChange,
    SystemExclusiveStart,
    TimeCodeQuarterFrame,
    SongPositionPointer,
    SongSelect,
    SystemCommonUndefined1,
    SystemCommonUndefined2,
    TuneRequest,
    SystemExclusiveEnd,
    TimingClock,
    SystemRealTimeUndefined1,
    Start,
    Continue,
    Stop,
    SystemRealTimeUndefined2,
    ActiveSensing,
    SystemReset,
}

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
NoteOn
PolyphonicKeyPressure
ControlChange
ProgramChange
ChannelPressure
PitchBendChange
SystemExclusiveStart
TimeCodeQuarterFrame
SongPositionPointer
SongSelect
SystemCommonUndefined1
SystemCommonUndefined2
TuneRequest
SystemExclusiveEnd
TimingClock
SystemRealTimeUndefined1
Start
Continue
Stop
SystemRealTimeUndefined2
ActiveSensing
SystemReset

Implementations

impl ShortMessageType[src]

pub const MIN: u8[src]

u8 representation of the first message type.

pub const MAX: u8[src]

u8 representation of the last message type.

pub fn super_type(&self) -> FuzzyMessageSuperType[src]

Returns the corresponding fuzzy super type.

Trait Implementations

impl Clone for ShortMessageType[src]

impl Copy for ShortMessageType[src]

impl Debug for ShortMessageType[src]

impl Eq for ShortMessageType[src]

impl From<ShortMessageType> for u8[src]

impl Hash for ShortMessageType[src]

impl Ord for ShortMessageType[src]

impl PartialEq<ShortMessageType> for ShortMessageType[src]

impl PartialOrd<ShortMessageType> for ShortMessageType[src]

impl StructuralEq for ShortMessageType[src]

impl StructuralPartialEq for ShortMessageType[src]

impl TryFrom<u8> for ShortMessageType[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for ShortMessageType[src]

type Primitive = u8

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.