NoteArray Class Reference
Holds a resizeable array of note on/off and patch change events. More...
#include <notearray.h>
Public Member Functions | |
NoteArray (void) | |
~NoteArray () | |
void | at (ulong pos, ulong ms, int chn, int cmd, int note) |
void | at (ulong pos, noteCmd s) |
noteCmd | at (int pos) |
void | add (ulong ms, int chn, int cmd, int note) |
void | iteratorBegin (void) |
noteCmd * | get (void) |
void | next (void) |
void | moveIteratorTo (ulong ms, int *pgm=NULL) |
Detailed Description
Holds a resizeable array of note on/off and patch change events.It can increase it size, but it doesn't decreases (until destruction :-) )
Stores an array of note on/off events
- Version:
- 0.9.5 17/01/2000
Definition at line 38 of file notearray.h.
Constructor & Destructor Documentation
NoteArray::NoteArray | ( | void | ) |
NoteArray::~NoteArray | ( | ) |
Member Function Documentation
void NoteArray::add | ( | ulong | ms, | |
int | chn, | |||
int | cmd, | |||
int | note | |||
) |
Adds a note/patch event at a given millisecond.
Note: This method always appends at the end of the list.
Definition at line 80 of file notearray.cc.
NoteArray::noteCmd NoteArray::at | ( | int | pos | ) |
void NoteArray::at | ( | ulong | pos, | |
noteCmd | s | |||
) |
A convenience function, which differs from the above in the parameters it accepts.
Definition at line 66 of file notearray.cc.
void NoteArray::at | ( | ulong | pos, | |
ulong | ms, | |||
int | chn, | |||
int | cmd, | |||
int | note | |||
) |
Adds (or modifies) an event in the given position .
Note that this has nothing to do with what is being played, this just modifies an internal array.
Definition at line 57 of file notearray.cc.
noteCmd* NoteArray::get | ( | void | ) | [inline] |
void NoteArray::iteratorBegin | ( | void | ) | [inline] |
void NoteArray::moveIteratorTo | ( | ulong | ms, | |
int * | pgm = NULL | |||
) |
Calls next() until the next event is over ms milliseconds and puts in pgm
[16] the instruments used at this moment.
Definition at line 105 of file notearray.cc.
void NoteArray::next | ( | void | ) |
The documentation for this class was generated from the following files: