Struct vst2::api::MidiEvent [] [src]

#[repr(C)]
pub struct MidiEvent { pub event_type: EventType, pub byte_size: i32, pub delta_frames: i32, pub flags: i32, pub note_length: i32, pub note_offset: i32, pub midi_data: [u8; 3], pub _midi_reserved: u8, pub detune: i8, pub note_off_velocity: u8, pub _reserved1: u8, pub _reserved2: u8, }

A midi event.

Fields

Should be EventType::Midi.

Size of this structure; mem::sizeof::<MidiEvent>().

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].

See flags::MidiFlags.

Length in sample frames of entire note if available, otherwise 0.

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

1 to 3 midi bytes. TODO: Doc

Reserved midi byte (0).

Detuning between -63 and +64 cents, for scales other than 'well-tempered'. e.g. 'microtuning'

Note off velocity between 0 and 127.

Reserved for future use. Should be 0.

Reserved for future use. Should be 0.