pub enum Vst3Event {
NoteOn {
sample_offset: u32,
channel: u8,
pitch: u8,
velocity: f32,
},
NoteOff {
sample_offset: u32,
channel: u8,
pitch: u8,
velocity: f32,
},
Midi {
sample_offset: u32,
bytes: [u8; 3],
len: u8,
},
ParamValue {
sample_offset: u32,
vst3_param_id: u32,
normalized: f64,
},
}Expand description
A VST3 input event for one processing block.
Mirrors the VST3 event surface; to_block_event
translates each variant into a graph BlockEvent, remapping parameter ids
through a Vst3ParamMap.
Variants§
NoteOn
A note-on event.
Fields
NoteOff
A note-off event.
Fields
Midi
A raw MIDI event of up to three bytes.
Fields
ParamValue
A normalized parameter value change.
Implementations§
Source§impl Vst3Event
impl Vst3Event
Sourcepub fn to_block_event(&self, params: &Vst3ParamMap) -> BlockEvent<'_>
pub fn to_block_event(&self, params: &Vst3ParamMap) -> BlockEvent<'_>
Translates this event into a graph BlockEvent, remapping any parameter
id through params.
Trait Implementations§
impl StructuralPartialEq for Vst3Event
Auto Trait Implementations§
impl Freeze for Vst3Event
impl RefUnwindSafe for Vst3Event
impl Send for Vst3Event
impl Sync for Vst3Event
impl Unpin for Vst3Event
impl UnsafeUnpin for Vst3Event
impl UnwindSafe for Vst3Event
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