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§
source§impl Clone for KeyBasedInstrumentControl
impl Clone for KeyBasedInstrumentControl
source§fn clone(&self) -> KeyBasedInstrumentControl
fn clone(&self) -> KeyBasedInstrumentControl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyBasedInstrumentControl
impl Debug for KeyBasedInstrumentControl
source§impl PartialEq for KeyBasedInstrumentControl
impl PartialEq for KeyBasedInstrumentControl
source§fn eq(&self, other: &KeyBasedInstrumentControl) -> bool
fn eq(&self, other: &KeyBasedInstrumentControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyBasedInstrumentControl
impl StructuralPartialEq for KeyBasedInstrumentControl
Auto Trait Implementations§
impl Freeze for KeyBasedInstrumentControl
impl RefUnwindSafe for KeyBasedInstrumentControl
impl Send for KeyBasedInstrumentControl
impl Sync for KeyBasedInstrumentControl
impl Unpin for KeyBasedInstrumentControl
impl UnwindSafe for KeyBasedInstrumentControl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more