VST 3 Examples VST 3.7
SDK for developing VST plug-in
SynthData< VoiceT, kEventBufferSize, kNumVoices > Struct Template Reference

#include <mdaBaseProcessor.h>

Public Types

using VOICE = VoiceT
 
using EventArray = std::array< Event, kEventBufferSize >
 
using EventPos = typename EventArray::size_type
 
using VoiceArray = std::array< VOICE, kNumVoices >
 

Public Member Functions

void init () noexcept
 
bool hasEvents () const noexcept
 
void clearEvents () noexcept
 
void processEvent (const Event &e) noexcept
 

Public Attributes

EventArray events
 
EventPos eventPos {0}
 
VoiceArray voice
 
int32 activevoices {0}
 
int32 sustain {0}
 

Static Public Attributes

static constexpr int32 eventBufferSize = kEventBufferSize
 
static constexpr int32 numVoices = kNumVoices
 
static constexpr int32 eventsDoneID = 99999999
 

Member Typedef Documentation

◆ VOICE

using VOICE = VoiceT

◆ EventArray

using EventArray = std::array<Event, kEventBufferSize>

◆ EventPos

using EventPos = typename EventArray::size_type

◆ VoiceArray

using VoiceArray = std::array<VOICE, kNumVoices>

Member Function Documentation

◆ init()

void init ( )
inlinenoexcept

◆ hasEvents()

bool hasEvents ( ) const
inlinenoexcept

◆ clearEvents()

void clearEvents ( )
inlinenoexcept

◆ processEvent()

void processEvent ( const Event e)
inlinenoexcept

Member Data Documentation

◆ eventBufferSize

constexpr int32 eventBufferSize = kEventBufferSize
staticconstexpr

◆ numVoices

constexpr int32 numVoices = kNumVoices
staticconstexpr

◆ eventsDoneID

constexpr int32 eventsDoneID = 99999999
staticconstexpr

◆ events

EventArray events

◆ eventPos

EventPos eventPos {0}

◆ voice

VoiceArray voice

◆ activevoices

int32 activevoices {0}

◆ sustain

int32 sustain {0}
Empty

Copyright © Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.