Struct midi_msg::KeyBasedInstrumentControl[][src]

pub struct KeyBasedInstrumentControl {
    pub channel: Channel,
    pub key: u8,
    pub control_values: Vec<(u8, u8)>,
}

Intended to act like Control Change messages, but targeted at an individual key. For e.g. Drum sounds that have configurable attack/release/decay per key. Used by UniversalRealTimeMsg::KeyBasedInstrumentControl.

Defined in CA-023.

Fields

channel: Channelkey: u8

The MIDI key number.

control_values: Vec<(u8, u8)>

Any number of (control number, value) pairs.

Any controller number may be used except Bank Select MSB/LSB (0x00, 0x20), Data Entry MSB/LSB (0x06, 0x26), RPN/NRPN messages (0x600x65), and Mode Change messages(0x78-0x7F).

Disallowed values will be set to 0x01 (targeting the mod wheel, which probably has no meaning).

Trait Implementations

impl Clone for KeyBasedInstrumentControl[src]

impl Debug for KeyBasedInstrumentControl[src]

impl PartialEq<KeyBasedInstrumentControl> for KeyBasedInstrumentControl[src]

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