Enum midi_msg::ChannelModeMsg[][src]

pub enum ChannelModeMsg {
    AllSoundOff,
    AllNotesOff,
    ResetAllControllers,
    OmniMode(bool),
    PolyMode(PolyMode),
    LocalControl(bool),
}

Channel-level messages that should alter the mode of the receiver. Used in MidiMsg.

Variants

AllSoundOff

Sound playing on the channel should be stopped as soon as possible, per GM2.

AllNotesOff

Stop sounding all notes on the channel.

ResetAllControllers

All controllers should be reset to their default values. GM specifies some of these defaults.

OmniMode(bool)

An instrument set to OmniMode(true) should respond to MIDI messages sent over all channels.

PolyMode(PolyMode)

Request that the receiver set itself to be monophonic/polyphonic.

LocalControl(bool)

Used to turn on or off “local control” of a MIDI synthesizer instrument. When the instrument does not have local control, its controller should only send out MIDI signals while the synthesizer should only respond to remote MIDI messages.

Trait Implementations

impl Clone for ChannelModeMsg[src]

impl Copy for ChannelModeMsg[src]

impl Debug for ChannelModeMsg[src]

impl PartialEq<ChannelModeMsg> for ChannelModeMsg[src]

impl StructuralPartialEq for ChannelModeMsg[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.