MIDI C++ Classes


CMidiEffect

CMidiEffect is a C++ class which implements all interfaces required for a MIDI effect to work properly. You should derive your own effect class from it.

Members:

CPlugParams params This member holds the parameter objects of the MIDI effect.

Constructors:

Additional Methods:


Constructors

CMidiEffect::CMidiEffect (const char* storageUID = 0)

When using chunk storage, the Class Identifier needs to be known for associating the chunk data with the MIDI effect (see IPersistentChunk).


Configuration

presetsAreChunks (bool) Advice to expose IPersistentChunk to the host.
To be called in Ctor of derived class.

See also Plug-In Storage: Chunks or Parameters?
setResourceID (const CResourceID&) Set the resource identifier of editor XML script.
To be called in Ctor of derived class.

See also Plug-In GUI using XML


CMidiEventQueue

Inheritance: CLinkedList <- CMidiEventQueue
Include File:  eventqueue.h

CMidiEventQueue is a time-sorted MIDI event queue which can hold events of type IMEObjectID. It needs an IMEAccessor to work properly.

Methods:


CMidiEventQueue::setAccessor

Sets a new accessor for this queue.


CMidiEventQueue::addEvent

bool addEvent (IMEObjectID event)

Adds one event time-sorted to the queue.


CMidiEventQueue::addEventCopy

bool addEventCopy (IMEObjectID event)

Adds a copy of the event time-sorted to the queue.


CMidiEventQueue::retrieveEvent

IMEObjectID retrieveEvent (long toPPQ)

Returns (and removes) the first event with a timestamp smaller than toPPQ, or NULL if no event matches this criterion.

Remarks:

All events created inside the Plug-In have to be destroyed with
IMEAccessor::destroyEvent!


CMidiEventQueue::empty

void empty ()

Empties the queue. All events will be destroyed via IMEAccessor::destroyEvent.



Copyright ©2004 Steinberg Media Technologies GmbH. All Rights Reserved.
Last Modified: