pub enum Event<'a> {
Midi(MidiEvent),
SysEx(SysExEvent<'a>),
Deprecated(Event),
}
Expand description
A VST event.
Variants§
Midi(MidiEvent)
A midi event.
These are sent to the plugin before Plugin::processing()
or Plugin::processing_f64()
is
called.
SysEx(SysExEvent<'a>)
A system exclusive event.
This is just a block of data and it is up to the plugin to interpret this. Generally used by midi controllers.
Deprecated(Event)
A deprecated event.
Passes the raw midi event structure along with this so that implementors can handle optionally handle this event.
Implementations§
source§impl<'a> Event<'a>
impl<'a> Event<'a>
sourcepub unsafe fn from_raw_event(event: *const Event) -> Event<'a>
pub unsafe fn from_raw_event(event: *const Event) -> Event<'a>
Creates a high-level event from the given low-level API event.
Safety
You must ensure that the given pointer refers to a valid event of the correct event type.
For example, if the event type is api::EventType::SysEx
, it should point to a
SysExEvent
. In case of a SysExEvent
, system_data
and data_size
must be correct.
Trait Implementations§
source§impl<'a> WriteIntoPlaceholder for Event<'a>
impl<'a> WriteIntoPlaceholder for Event<'a>
source§fn write_into(&self, out: &mut PlaceholderEvent)
fn write_into(&self, out: &mut PlaceholderEvent)
writes an event into the given placeholder memory location