pub enum Midi2ChannelVoice {
NoteOff {
channel: u8,
note: u8,
velocity: u16,
attribute_type: u8,
attribute_data: u16,
},
NoteOn {
channel: u8,
note: u8,
velocity: u16,
attribute_type: u8,
attribute_data: u16,
},
PolyPressure {
channel: u8,
note: u8,
pressure: u32,
},
ControlChange {
channel: u8,
index: u8,
value: u32,
},
ProgramChange {
channel: u8,
program: u8,
bank_valid: bool,
bank_msb: u8,
bank_lsb: u8,
},
ChannelPressure {
channel: u8,
pressure: u32,
},
PitchBend {
channel: u8,
value: u32,
},
}Expand description
A MIDI 2.0 channel-voice message (MT 0x4 payload), decoded into fields. Values are at MIDI 2.0 resolution (16-bit velocity, 32-bit controllers/bend).
Variants§
NoteOff
Note Off. attribute_type/attribute_data carry the optional attribute.
Fields
NoteOn
Note On.
Fields
PolyPressure
Polyphonic Key Pressure.
ControlChange
Control Change.
Fields
ProgramChange
Program Change (with optional bank).
Fields
ChannelPressure
Channel Pressure.
PitchBend
Pitch Bend.
Trait Implementations§
Source§impl Clone for Midi2ChannelVoice
impl Clone for Midi2ChannelVoice
impl Copy for Midi2ChannelVoice
Source§impl Debug for Midi2ChannelVoice
impl Debug for Midi2ChannelVoice
impl Eq for Midi2ChannelVoice
Source§impl PartialEq for Midi2ChannelVoice
impl PartialEq for Midi2ChannelVoice
impl StructuralPartialEq for Midi2ChannelVoice
Auto Trait Implementations§
impl Freeze for Midi2ChannelVoice
impl RefUnwindSafe for Midi2ChannelVoice
impl Send for Midi2ChannelVoice
impl Sync for Midi2ChannelVoice
impl Unpin for Midi2ChannelVoice
impl UnsafeUnpin for Midi2ChannelVoice
impl UnwindSafe for Midi2ChannelVoice
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