[][src]Enum midistream::SimpleMsg

pub enum SimpleMsg {
    NoteOff(Note),
    NoteOn(Note),
    PolyKeyPressure(Note),
    ControlChange(Control),
    ProgramChange(ChannelValue),
    ChannelKeyPressure(ChannelValue),
    PitchBendChange(PitchBend),
    MTCQuarterFrame(U7),
    SongPositionPointer(U14),
    SongSelect(U7),
    TuneRequest,
    TimingClock,
    Start,
    Continue,
    Stop,
    ActiveSensing,
    SystemReset,
}

A standard, short MIDI message.

Variants

NoteOff(Note)
NoteOn(Note)
PolyKeyPressure(Note)
ControlChange(Control)
ProgramChange(ChannelValue)
ChannelKeyPressure(ChannelValue)
PitchBendChange(PitchBend)
MTCQuarterFrame(U7)
SongPositionPointer(U14)
SongSelect(U7)
TuneRequest
TimingClock
Start
Continue
Stop
ActiveSensing
SystemReset

Implementations

impl SimpleMsg[src]

pub fn encode<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

pub fn all_sound_off<C: Into<Channel>>(c: C) -> SimpleMsg[src]

pub fn reset_all_controllers<C: Into<Channel>>(c: C) -> SimpleMsg[src]

pub fn local_control<C: Into<Channel>>(c: C, value: bool) -> SimpleMsg[src]

pub fn all_notes_off<C: Into<Channel>>(c: C) -> SimpleMsg[src]

pub fn omni_off<C: Into<Channel>>(c: C) -> SimpleMsg[src]

pub fn omni_on<C: Into<Channel>>(c: C) -> SimpleMsg[src]

pub fn mono_mode<C: Into<Channel>, V: Into<U7>>(c: C, value: V) -> SimpleMsg[src]

pub fn poly_mode<C: Into<Channel>>(c: C) -> SimpleMsg[src]

pub fn note_on<C: Into<Channel>, N: Into<U7>, V: Into<U7>>(
    c: C,
    n: N,
    v: V
) -> SimpleMsg
[src]

pub fn note_off<C: Into<Channel>, N: Into<U7>, V: Into<U7>>(
    c: C,
    n: N,
    v: V
) -> SimpleMsg
[src]

pub fn poly_key_pressure<C: Into<Channel>, N: Into<U7>, V: Into<U7>>(
    c: C,
    n: N,
    v: V
) -> SimpleMsg
[src]

pub fn control_change<C: Into<Channel>, Z: Into<U7>, V: Into<U7>>(
    c: C,
    z: Z,
    v: V
) -> SimpleMsg
[src]

pub fn program_change<C: Into<Channel>, V: Into<U7>>(c: C, v: V) -> SimpleMsg[src]

pub fn channel_key_pressure<C: Into<Channel>, V: Into<U7>>(
    c: C,
    v: V
) -> SimpleMsg
[src]

pub fn pitch_bend_change<C: Into<Channel>, V: Into<U14>>(
    c: C,
    v: V
) -> SimpleMsg
[src]

Trait Implementations

impl Clone for SimpleMsg[src]

impl Copy for SimpleMsg[src]

impl Debug for SimpleMsg[src]

impl Eq for SimpleMsg[src]

impl From<SimpleMsg> for Msg[src]

impl Ord for SimpleMsg[src]

impl PartialEq<SimpleMsg> for SimpleMsg[src]

impl PartialOrd<SimpleMsg> for SimpleMsg[src]

impl StructuralEq for SimpleMsg[src]

impl StructuralPartialEq for SimpleMsg[src]

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.