XMidiEventList Class Reference

#include <XMidiEventList.h>

List of all members.

Public Member Functions

int write (ODataSource *dest)
void incerementCounter ()
void decerementCounter ()
XMidiEventfindBranchEvent (int index)

Public Attributes

uint16 chan_mask
XMidiEventevents
XMidiEventbranches

Private Member Functions

int putVLQ (ODataSource *dest, uint32 value)
uint32 convertListToMTrk (ODataSource *dest)

Static Private Member Functions

static void deleteEventList (XMidiEvent *list)

Private Attributes

int counter


Detailed Description

Definition at line 28 of file XMidiEventList.h.


Member Function Documentation

uint32 XMidiEventList::convertListToMTrk ( ODataSource dest  )  [private]

Definition at line 109 of file XMidiEventList.cpp.

References XMidiEvent::data, events, XMidiEvent::ex, ODataSource::getPos(), XMidiEvent::next, perr, putVLQ(), ODataSource::skip(), XMidiEvent::status, XMidiEvent::sysex_data, XMidiEvent::time, time, and ODataSource::write1().

Referenced by write().

void XMidiEventList::decerementCounter (  ) 

Decrement the counter and delete the event list, if possible.

Definition at line 223 of file XMidiEventList.cpp.

References counter, deleteEventList(), events, and XMidiEvent::Free().

Referenced by XMidiSequence::~XMidiSequence().

void XMidiEventList::deleteEventList ( XMidiEvent list  )  [static, private]

Definition at line 231 of file XMidiEventList.cpp.

References XMidiEvent::ex, XMidiEvent::Free(), XMidiEvent::next, XMidiEvent::status, and XMidiEvent::sysex_data.

Referenced by decerementCounter().

XMidiEvent* XMidiEventList::findBranchEvent ( int  index  )  [inline]

Find the Sequence Branch Event for the index

Parameters:
index The index to search for
Returns:
The event found, or 0

Definition at line 57 of file XMidiEventList.h.

References XMidiEvent::branch_index, branches, XMidiEvent::data, and XMidiEvent::ex.

Referenced by XMidiSequence::playEvent(), MusicProcess::run(), and XMidiSequence::XMidiSequence().

void XMidiEventList::incerementCounter (  )  [inline]

Increments the counter.

Definition at line 49 of file XMidiEventList.h.

References counter.

Referenced by LowLevelMidiDriver::startSequence().

int XMidiEventList::putVLQ ( ODataSource dest,
uint32  value 
) [private]

Definition at line 85 of file XMidiEventList.cpp.

References ODataSource::write1().

Referenced by convertListToMTrk().

int XMidiEventList::write ( ODataSource dest  ) 

Write the list to a DataSource.

Definition at line 46 of file XMidiEventList.cpp.

References convertListToMTrk(), events, perr, ODataSource::write1(), ODataSource::write2high(), and ODataSource::write4high().


Member Data Documentation

XMidiEvent* XMidiEventList::branches

XMidiFile Seq Branch Index controllers. For Ult126 = loop start.

Definition at line 43 of file XMidiEventList.h.

Referenced by XMidiFile::ExtractTracksFromMid(), XMidiFile::ExtractTracksFromXmi(), and findBranchEvent().

uint16 XMidiEventList::chan_mask

Definition at line 39 of file XMidiEventList.h.

Referenced by XMidiFile::ExtractTracksFromXmi(), XMidiSequence::getChanMask(), XMidiSequence::pause(), XMidiSequence::setVolume(), and XMidiSequence::unpause().

int XMidiEventList::counter [private]

Definition at line 30 of file XMidiEventList.h.

Referenced by decerementCounter(), and incerementCounter().

XMidiEvent* XMidiEventList::events

Definition at line 40 of file XMidiEventList.h.

Referenced by convertListToMTrk(), decerementCounter(), LowLevelMidiDriver::extractTimbreLibrary(), XMidiFile::ExtractTracksFromMid(), XMidiFile::ExtractTracksFromU7V(), XMidiFile::ExtractTracksFromXmi(), XMidiFile::ExtractTracksFromXMIDIMT(), XMidiFile::InsertDisplayEvents(), XMidiSequence::playEvent(), write(), and XMidiSequence::XMidiSequence().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:30:12 2007 for pentagram by  doxygen 1.4.7