pub enum NoteEventKind {
On {
velocity: f64,
},
Off {
velocity: f64,
},
Choke,
End,
Expression {
id: NoteExpression,
value: f64,
},
ParamMod {
param_id: u32,
amount: f64,
},
ParamValue {
param_id: u32,
plain: f64,
},
}Expand description
What happened to a (possibly scoped) note.
Variants§
On
Off
Choke
End
Voice finished sounding (CLAP_EVENT_NOTE_END). Host drops poly mods.
Expression
ParamMod
Per-note PARAM_MOD (note_id >= 0). Does not touch [crate::Params].
ParamValue
Per-note PARAM_VALUE (note_id >= 0). Absolute plain; not the knob.
Trait Implementations§
Source§impl Clone for NoteEventKind
impl Clone for NoteEventKind
Source§fn clone(&self) -> NoteEventKind
fn clone(&self) -> NoteEventKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoteEventKind
Source§impl Debug for NoteEventKind
impl Debug for NoteEventKind
Source§impl PartialEq for NoteEventKind
impl PartialEq for NoteEventKind
impl StructuralPartialEq for NoteEventKind
Auto Trait Implementations§
impl Forget for NoteEventKind
impl Freeze for NoteEventKind
impl RefUnwindSafe for NoteEventKind
impl Send for NoteEventKind
impl Sync for NoteEventKind
impl Unpin for NoteEventKind
impl UnsafeUnpin for NoteEventKind
impl UnwindSafe for NoteEventKind
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