jdkmidi::MIDITrack Class Reference

#include <track.h>


Detailed Description

The MIDITrack class is a container that manages an array of MIDIChunk objects and provides an interface to the user that is useful for managing a list of MIDITimedBigMessages. It internally stores MIDITimedBigMessage objects. There is a fixed maximum number of events that it can store, which is defined by MIDIChunksPerTrack * MIDITrackChunkSize.

Definition at line 98 of file track.h.

Public Member Functions

 MIDITrack (int size=0)
 MIDITrack (const MIDITrack &t)
 ~MIDITrack ()
void Clear ()
void Shrink ()
void ClearAndMerge (const MIDITrack *src1, const MIDITrack *src2)
bool Expand (int increase_amount=(MIDITrackChunkSize))
MIDITimedBigMessageGetEventAddress (int event_num)
const MIDITimedBigMessageGetEventAddress (int event_num) const
const MIDITimedBigMessageGetEvent (int event_num) const
MIDITimedBigMessageGetEvent (int event_num)
bool GetEvent (int event_num, MIDITimedBigMessage *msg) const
bool PutEvent (const MIDITimedBigMessage &msg)
bool PutEvent (const MIDITimedMessage &msg, MIDISystemExclusive *sysex)
bool SetEvent (int event_num, const MIDITimedBigMessage &msg)
bool MakeEventNoOp (int event_num)
bool FindEventNumber (MIDIClockTime time, int *event_num) const
int GetBufferSize () const
int GetNumEvents () const

Private Attributes

MIDITrackChunkchunk [MIDIChunksPerTrack]
int buf_size
int num_events


The documentation for this class was generated from the following files:
Generated on Thu Jan 25 00:04:58 2007 for jdkmidi by  doxygen 1.4.7