pub enum EventBody {
Show 16 variants
NoteOn {
channel: u8,
note: u8,
velocity: f32,
},
NoteOff {
channel: u8,
note: u8,
velocity: f32,
},
Aftertouch {
channel: u8,
note: u8,
pressure: f32,
},
ChannelPressure {
channel: u8,
pressure: f32,
},
ControlChange {
channel: u8,
cc: u8,
value: f32,
},
PitchBend {
channel: u8,
value: f32,
},
ProgramChange {
channel: u8,
program: u8,
},
NoteOn2 {
group: u8,
channel: u8,
note: u8,
velocity: u16,
attribute_type: u8,
attribute: u16,
},
NoteOff2 {
group: u8,
channel: u8,
note: u8,
velocity: u16,
attribute_type: u8,
attribute: u16,
},
PerNoteCC {
channel: u8,
note: u8,
cc: u8,
value: u32,
},
PerNotePitchBend {
channel: u8,
note: u8,
value: u32,
},
PerNoteManagement {
channel: u8,
note: u8,
flags: u8,
},
PolyPressure2 {
channel: u8,
note: u8,
pressure: u32,
},
ParamChange {
id: u32,
value: f64,
},
ParamMod {
id: u32,
note_id: i32,
value: f64,
},
Transport(TransportInfo),
}Variants§
NoteOn
NoteOff
Aftertouch
ChannelPressure
ControlChange
PitchBend
ProgramChange
NoteOn2
NoteOff2
PerNoteCC
PerNotePitchBend
PerNoteManagement
PolyPressure2
ParamChange
ParamMod
Parameter modulation offset (CLAP-specific, zero on other formats). The effective value is base + mod. The base value is unchanged.
Transport(TransportInfo)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventBody
impl RefUnwindSafe for EventBody
impl Send for EventBody
impl Sync for EventBody
impl Unpin for EventBody
impl UnsafeUnpin for EventBody
impl UnwindSafe for EventBody
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