.TH "NoteArray" 3 "28 Jan 2004" "libkmid Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
NoteArray \- Holds a resizeable array of note on/off and patch change events. Stores an array of note on/off events.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <notearray.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBNoteArray\fP (void)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fB~NoteArray\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "void \fBat\fP (\fBulong\fP pos, \fBulong\fP ms, int chn, int cmd, int note)"
.br
.RI "\fIAdds (or modifies) an event in the given position . \fP"
.ti -1c
.RI "void \fBat\fP (\fBulong\fP pos, noteCmd s)"
.br
.RI "\fIA convenience function, which differs from the above in the parameters it accepts. \fP"
.ti -1c
.RI "noteCmd \fBat\fP (int pos)"
.br
.RI "\fIReturns the note event at a given position. \fP"
.ti -1c
.RI "void \fBadd\fP (\fBulong\fP ms, int chn, int cmd, int note)"
.br
.RI "\fIAdds a note/patch event at a given millisecond. \fP"
.ti -1c
.RI "void \fBiteratorBegin\fP (void)"
.br
.RI "\fIInitializes the iterator. \fP"
.ti -1c
.RI "noteCmd * \fBget\fP (void)"
.br
.RI "\fIGet the command currently pointed to by the iterator. \fP"
.ti -1c
.RI "void \fBnext\fP (void)"
.br
.RI "\fIAdvances the iterator to the next position. \fP"
.ti -1c
.RI "void \fBmoveIteratorTo\fP (\fBulong\fP ms, int *pgm=NULL)"
.br
.RI "\fICalls \fBnext\fP() until the next event is over ms milliseconds and puts in \fCpgm\fP[16] the instruments used at this moment. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Holds a resizeable array of note on/off and patch change events. Stores an array of note on/off events. 

It can increase it size, but it doesn't decreases (until destruction :-) )
.PP
\fBVersion:\fP
.RS 4
0.9.5 17/01/2000 
.RE
.PP
\fBAuthor:\fP
.RS 4
Antonio Larrosa Jimenez <larrosa@kde.org> 
.RE
.PP

.PP
Definition at line 37 of file notearray.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "NoteArray::NoteArray (void)"
.PP
Constructor. Initializes internal variables. Definition at line 30 of file notearray.cc.
.SS "NoteArray::~\fBNoteArray\fP ()"
.PP
Destructor. Definition at line 37 of file notearray.cc.
.SH "Member Function Documentation"
.PP 
.SS "void NoteArray::at (\fBulong\fP pos, \fBulong\fP ms, int chn, int cmd, int note)"
.PP
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.
.SS "void NoteArray::at (\fBulong\fP pos, noteCmd s)"
.PP
A convenience function, which differs from the above in the parameters it accepts. Definition at line 66 of file notearray.cc.
.SS "NoteArray::noteCmd NoteArray::at (int pos)"
.PP
Returns the note event at a given position. Definition at line 75 of file notearray.cc.
.SS "void NoteArray::add (\fBulong\fP ms, int chn, int cmd, int note)"
.PP
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.
.SS "void NoteArray::iteratorBegin (void)\fC [inline]\fP"
.PP
Initializes the iterator. \fBSee also:\fP
.RS 4
\fBget()\fP 
.PP
\fBnext()\fP 
.RE
.PP
Definition at line 125 of file notearray.h.
.PP
Referenced by moveIteratorTo().
.SS "noteCmd* NoteArray::get (void)\fC [inline]\fP"
.PP
Get the command currently pointed to by the iterator. Definition at line 130 of file notearray.h.
.PP
Referenced by moveIteratorTo().
.SS "void NoteArray::next (void)"
.PP
Advances the iterator to the next position. Definition at line 99 of file notearray.cc.
.PP
Referenced by moveIteratorTo().
.SS "void NoteArray::moveIteratorTo (\fBulong\fP ms, int * pgm = NULL)"
.PP
Calls \fBnext\fP() until the next event is over ms milliseconds and puts in \fCpgm\fP[16] the instruments used at this moment. Definition at line 105 of file notearray.cc.
.PP
References get(), iteratorBegin(), and next().

.SH "Author"
.PP 
Generated automatically by Doxygen for libkmid Library from the source code.
