Struct midi_msg::KeyBasedInstrumentControl
source · [−]pub struct KeyBasedInstrumentControl {
pub channel: Channel,
pub key: u8,
pub control_values: Vec<(u8, u8)>,
}
Expand description
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: Channel
key: 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 (0x60
– 0x65
),
and Mode Change messages(0x78
-0x7F
).
Disallowed values will be set to 0x01
(targeting the mod wheel, which probably has no meaning).
Trait Implementations
sourceimpl Clone for KeyBasedInstrumentControl
impl Clone for KeyBasedInstrumentControl
sourcefn clone(&self) -> KeyBasedInstrumentControl
fn clone(&self) -> KeyBasedInstrumentControl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KeyBasedInstrumentControl
impl Debug for KeyBasedInstrumentControl
sourceimpl PartialEq<KeyBasedInstrumentControl> for KeyBasedInstrumentControl
impl PartialEq<KeyBasedInstrumentControl> for KeyBasedInstrumentControl
sourcefn eq(&self, other: &KeyBasedInstrumentControl) -> bool
fn eq(&self, other: &KeyBasedInstrumentControl) -> bool
impl Eq for KeyBasedInstrumentControl
impl StructuralEq for KeyBasedInstrumentControl
impl StructuralPartialEq for KeyBasedInstrumentControl
Auto Trait Implementations
impl RefUnwindSafe for KeyBasedInstrumentControl
impl Send for KeyBasedInstrumentControl
impl Sync for KeyBasedInstrumentControl
impl Unpin for KeyBasedInstrumentControl
impl UnwindSafe for KeyBasedInstrumentControl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more