ASPiK SDK
Loading...
Searching...
No Matches
Steinberg::Vst::ASPiK::VSTMIDIEventQueue Class Reference

The VSTMIDIEventQueue interface queues incoming MIDI messages and blasts them out during the buffer processing phase. More...

#include <vst3plugin.h>

Inheritance diagram for Steinberg::Vst::ASPiK::VSTMIDIEventQueue:
IMidiEventQueue

Public Member Functions

 VSTMIDIEventQueue (PluginCore *_pluginCore)
 
void clearMIDIProxyEvents ()
 
void addMIDIProxyEvent (midiEvent &event)
 
void setEventList (IEventList *_inputEvents)
 
virtual unsigned int getEventCount ()
 
virtual bool fireMidiEvents (unsigned int sampleOffset)
 
- Public Member Functions inherited from IMidiEventQueue
virtual uint32_t getEventCount ()=0
 
virtual bool fireMidiEvents (uint32_t uSampleOffset)=0
 

Protected Attributes

PluginCorepluginCore = nullptr
 the core object
 
IEventList * inputEvents = nullptr
 the current event list for this buffer cycle
 
unsigned int currentEventIndex = 0
 index of current event
 
std::vector< midiEventproxyMIDIEvents
 

Detailed Description

The VSTMIDIEventQueue interface queues incoming MIDI messages and blasts them out during the buffer processing phase.

NOTES:

  • this is a simple object because the VST spec automatically delivers queues of MIDI messages
  • so this provides a kind of thin wrapper around those messages to deliver to the core
Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2018 / 09 / 7

Member Function Documentation

◆ fireMidiEvents()

virtual bool Steinberg::Vst::ASPiK::VSTMIDIEventQueue::fireMidiEvents ( unsigned int  sampleOffset)
inlinevirtual

send MIDI event at this sample offset to core

◆ getEventCount()

virtual unsigned int Steinberg::Vst::ASPiK::VSTMIDIEventQueue::getEventCount ( )
inlinevirtual

get count of messages in current list

Implements IMidiEventQueue.

◆ setEventList()

void Steinberg::Vst::ASPiK::VSTMIDIEventQueue::setEventList ( IEventList *  _inputEvents)
inline

set a new list from VST host


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