Enum vst2::event::Event [] [src]

pub enum Event<'a> {
    Midi {
        data: [u8; 3],
        delta_frames: i32,
        live: bool,
        note_length: Option<i32>,
        note_offset: Option<i32>,
        detune: i8,
        note_off_velocity: u8,
    },
    SysEx {
        payload: &'a [u8],
        delta_frames: i32,
    },
    Deprecated(Event),
}

A VST event.

Variants

A midi event.

These are sent to the plugin before Plugin::processing() or Plugin::processing_f64() is called.

Fields of Midi

The raw midi data associated with this event.

Number of samples into the current processing block that this event occurs on.

E.g. if the block size is 512 and this value is 123, the event will occur on sample samples[123].

This midi event was created live as opposed to being played back in the sequencer.

This can give the plugin priority over this event if it introduces a lot of latency.

The length of the midi note associated with this event, if available.

Offset in samples into note from note start, if available.

Detuning between -63 and +64 cents.

Note off velocity between 0 and 127.

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.

Fields of SysEx

The SysEx payload.

Number of samples into the current processing block that this event occurs on.

E.g. if the block size is 512 and this value is 123, the event will occur on sample samples[123].

A deprecated event.

Passes the raw midi event structure along with this so that implementors can handle optionally handle this event.

Trait Implementations

impl<'a> From<Event> for Event<'a>
[src]

Performs the conversion.