JUCE  v5.1.1-3-g1a0b28c73
JUCE API
MidiEventList Class Reference

#include <juce_VST3Common.h>

Inheritance diagram for MidiEventList:
Collaboration diagram for MidiEventList:

Public Member Functions

 MidiEventList ()
 
virtual ~MidiEventList ()
 
Steinberg::tresult PLUGIN_API addEvent (Steinberg::Vst::Event &e) override
 
JUCE_DECLARE_VST3_COM_REF_METHODS JUCE_DECLARE_VST3_COM_QUERY_METHODS void clear ()
 
Steinberg::tresult PLUGIN_API getEvent (Steinberg::int32 index, Steinberg::Vst::Event &e) override
 
Steinberg::int32 PLUGIN_API getEventCount () override
 

Static Public Member Functions

static void toEventList (Steinberg::Vst::IEventList &result, MidiBuffer &midiBuffer)
 
static void toMidiBuffer (MidiBuffer &result, Steinberg::Vst::IEventList &eventList)
 

Static Private Member Functions

static Steinberg::int16 createSafeChannel (int channel) noexcept
 
static int createSafeChannel (Steinberg::int16 channel) noexcept
 
static Steinberg::int16 createSafeNote (int note) noexcept
 
static int createSafeNote (Steinberg::int16 note) noexcept
 
static int denormaliseToMidiValue (float value) noexcept
 
static float normaliseMidiValue (int value) noexcept
 

Private Attributes

Array< Steinberg::Vst::Event, CriticalSectionevents
 
Atomic< intrefCount
 

Constructor & Destructor Documentation

◆ MidiEventList()

MidiEventList::MidiEventList ( )
inline

◆ ~MidiEventList()

virtual MidiEventList::~MidiEventList ( )
inlinevirtual

Member Function Documentation

◆ addEvent()

Steinberg::tresult PLUGIN_API MidiEventList::addEvent ( Steinberg::Vst::Event &  e)
inlineoverride

◆ clear()

◆ createSafeChannel() [1/2]

static Steinberg::int16 MidiEventList::createSafeChannel ( int  channel)
inlinestaticprivatenoexcept

References jlimit().

◆ createSafeChannel() [2/2]

static int MidiEventList::createSafeChannel ( Steinberg::int16  channel)
inlinestaticprivatenoexcept

References jlimit().

◆ createSafeNote() [1/2]

static Steinberg::int16 MidiEventList::createSafeNote ( int  note)
inlinestaticprivatenoexcept

References jlimit().

◆ createSafeNote() [2/2]

static int MidiEventList::createSafeNote ( Steinberg::int16  note)
inlinestaticprivatenoexcept

References jlimit().

◆ denormaliseToMidiValue()

static int MidiEventList::denormaliseToMidiValue ( float  value)
inlinestaticprivatenoexcept

◆ getEvent()

Steinberg::tresult PLUGIN_API MidiEventList::getEvent ( Steinberg::int32  index,
Steinberg::Vst::Event &  e 
)
inlineoverride

◆ getEventCount()

Steinberg::int32 PLUGIN_API MidiEventList::getEventCount ( )
inlineoverride

◆ normaliseMidiValue()

static float MidiEventList::normaliseMidiValue ( int  value)
inlinestaticprivatenoexcept

References jlimit().

◆ toEventList()

◆ toMidiBuffer()

static void MidiEventList::toMidiBuffer ( MidiBuffer result,
Steinberg::Vst::IEventList eventList 
)
inlinestatic

Member Data Documentation

◆ events

Array<Steinberg::Vst::Event, CriticalSection> MidiEventList::events
private

◆ refCount

Atomic<int> MidiEventList::refCount
private

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