\section{Note\-Array Class Reference}
\label{classNoteArray}\index{NoteArray@{NoteArray}}
Holds a resizeable array of note on/off and patch change events. Stores an array of note on/off events.  


{\tt \#include $<$notearray.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Note\-Array} (void)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
{\bf $\sim$Note\-Array} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void {\bf at} ({\bf ulong} pos, {\bf ulong} ms, int chn, int cmd, int note)
\begin{CompactList}\small\item\em Adds (or modifies) an event in the given position . \item\end{CompactList}\item 
void {\bf at} ({\bf ulong} pos, note\-Cmd s)
\begin{CompactList}\small\item\em A convenience function, which differs from the above in the parameters it accepts. \item\end{CompactList}\item 
note\-Cmd {\bf at} (int pos)
\begin{CompactList}\small\item\em Returns the note event at a given position. \item\end{CompactList}\item 
void {\bf add} ({\bf ulong} ms, int chn, int cmd, int note)
\begin{CompactList}\small\item\em Adds a note/patch event at a given millisecond. \item\end{CompactList}\item 
void {\bf iterator\-Begin} (void)
\begin{CompactList}\small\item\em Initializes the iterator. \item\end{CompactList}\item 
note\-Cmd $\ast$ {\bf get} (void)
\begin{CompactList}\small\item\em Get the command currently pointed to by the iterator. \item\end{CompactList}\item 
void {\bf next} (void)
\begin{CompactList}\small\item\em Advances the iterator to the next position. \item\end{CompactList}\item 
void {\bf move\-Iterator\-To} ({\bf ulong} ms, int $\ast$pgm=NULL)
\begin{CompactList}\small\item\em Calls {\bf next}{\rm (p.\,\pageref{classNoteArray_a8})}() until the next event is over ms milliseconds and puts in {\tt pgm}[16] the instruments used at this moment. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
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 :-) )

\begin{Desc}
\item[Version:]0.9.5 17/01/2000 \end{Desc}
\begin{Desc}
\item[Author:]Antonio Larrosa Jimenez $<${\tt larrosa@kde.org}$>$ \end{Desc}




Definition at line 37 of file notearray.h.

\subsection{Constructor \& Destructor Documentation}
\index{NoteArray@{Note\-Array}!NoteArray@{NoteArray}}
\index{NoteArray@{NoteArray}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Note\-Array::Note\-Array (void)}\label{classNoteArray_a0}


Constructor. 

Initializes internal variables. 

Definition at line 30 of file notearray.cc.\index{NoteArray@{Note\-Array}!~NoteArray@{$\sim$NoteArray}}
\index{~NoteArray@{$\sim$NoteArray}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Note\-Array::$\sim${\bf Note\-Array} ()}\label{classNoteArray_a1}


Destructor. 



Definition at line 37 of file notearray.cc.

\subsection{Member Function Documentation}
\index{NoteArray@{Note\-Array}!at@{at}}
\index{at@{at}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Note\-Array::at ({\bf ulong} {\em pos}, {\bf ulong} {\em ms}, int {\em chn}, int {\em cmd}, int {\em note})}\label{classNoteArray_a2}


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.\index{NoteArray@{Note\-Array}!at@{at}}
\index{at@{at}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Note\-Array::at ({\bf ulong} {\em pos}, note\-Cmd {\em s})}\label{classNoteArray_a3}


A convenience function, which differs from the above in the parameters it accepts. 



Definition at line 66 of file notearray.cc.\index{NoteArray@{Note\-Array}!at@{at}}
\index{at@{at}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Note\-Array::note\-Cmd Note\-Array::at (int {\em pos})}\label{classNoteArray_a4}


Returns the note event at a given position. 



Definition at line 75 of file notearray.cc.\index{NoteArray@{Note\-Array}!add@{add}}
\index{add@{add}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Note\-Array::add ({\bf ulong} {\em ms}, int {\em chn}, int {\em cmd}, int {\em note})}\label{classNoteArray_a5}


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.\index{NoteArray@{Note\-Array}!iteratorBegin@{iteratorBegin}}
\index{iteratorBegin@{iteratorBegin}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Note\-Array::iterator\-Begin (void)\hspace{0.3cm}{\tt  [inline]}}\label{classNoteArray_a6}


Initializes the iterator. 

\begin{Desc}
\item[See also:]{\bf get()}{\rm (p.\,\pageref{classNoteArray_a7})} 

{\bf next()}{\rm (p.\,\pageref{classNoteArray_a8})} \end{Desc}


Definition at line 125 of file notearray.h.

Referenced by move\-Iterator\-To().\index{NoteArray@{Note\-Array}!get@{get}}
\index{get@{get}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}note\-Cmd$\ast$ Note\-Array::get (void)\hspace{0.3cm}{\tt  [inline]}}\label{classNoteArray_a7}


Get the command currently pointed to by the iterator. 



Definition at line 130 of file notearray.h.

Referenced by move\-Iterator\-To().\index{NoteArray@{Note\-Array}!next@{next}}
\index{next@{next}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Note\-Array::next (void)}\label{classNoteArray_a8}


Advances the iterator to the next position. 



Definition at line 99 of file notearray.cc.

Referenced by move\-Iterator\-To().\index{NoteArray@{Note\-Array}!moveIteratorTo@{moveIteratorTo}}
\index{moveIteratorTo@{moveIteratorTo}!NoteArray@{Note\-Array}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Note\-Array::move\-Iterator\-To ({\bf ulong} {\em ms}, int $\ast$ {\em pgm} = NULL)}\label{classNoteArray_a9}


Calls {\bf next}{\rm (p.\,\pageref{classNoteArray_a8})}() until the next event is over ms milliseconds and puts in {\tt pgm}[16] the instruments used at this moment. 



Definition at line 105 of file notearray.cc.

References get(), iterator\-Begin(), and next().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
notearray.h\item 
notearray.cc\end{CompactItemize}
