VST2SDK
A recreation of the popular Steinberg VST 2.x SDK.
Loading...
Searching...
No Matches
vst_event_midi_t Union Reference

A MIDI event. More...

#include <vst.h>

Data Fields

struct vst_event_t event
 Shared event structure.
 
struct { 
 
   int32_t   is_real_time 
 Is this note played in real time (played live)? Can only ever be 0 (sequencer) or 1 (live). More...
 
   int32_t   length 
 Note Length (in samples/frames) of the played note if available. More...
 
   int32_t   offset 
 Some kind of offset (in samples/frames). More...
 
   char   data [4] 
 Zero terminated array containing up to 3 bytes of MIDI information. More...
 
   int8_t   tune 
 Tune (in cents) for anything that isn't the default scale. More...
 
   int8_t   velocity 
 Note velocity. More...
 
midi 
 

Detailed Description

A MIDI event.

See also
VST_EVENT_TYPE_MIDI
vst_host_supports_t.sendVstMidiEvents
vst_host_supports_t.receiveVstMidiEvents
vst_host_supports_t.sendVstMidiEventFlagIsRealtime
vst_effect_supports_t.sendVstMidiEvents
vst_effect_supports_t.receiveVstMidiEvents

Definition at line 890 of file vst.h.

Field Documentation

◆ data

char vst_event_midi_t::data[4]

Zero terminated array containing up to 3 bytes of MIDI information.

Note
data[3] is always zero.

Definition at line 918 of file vst.h.

◆ event

struct vst_event_t vst_event_midi_t::event

Shared event structure.

Definition at line 892 of file vst.h.

◆ is_real_time

int32_t vst_event_midi_t::is_real_time

Is this note played in real time (played live)? Can only ever be 0 (sequencer) or 1 (live).

Todo:
Can this be 1 in VST 2.3 and earlier or only 2.4?
See also
vst_host_supports_t.sendVstMidiEventFlagIsRealtime

Definition at line 904 of file vst.h.

◆ length

int32_t vst_event_midi_t::length

Note Length (in samples/frames) of the played note if available.

Definition at line 908 of file vst.h.

◆ [struct]

struct { ... } vst_event_midi_t::midi

◆ offset

int32_t vst_event_midi_t::offset

Some kind of offset (in samples/frames).

Definition at line 912 of file vst.h.

◆ tune

int8_t vst_event_midi_t::tune

Tune (in cents) for anything that isn't the default scale.

Range: -64 to 63

Definition at line 924 of file vst.h.

◆ velocity

int8_t vst_event_midi_t::velocity

Note velocity.

Range: 0 to 127

Todo:
Are negative values possible?

Definition at line 931 of file vst.h.


The documentation for this union was generated from the following file: