\section{Midi\-Status Class Reference}
\label{classMidiStatus}\index{MidiStatus@{MidiStatus}}
Stores the status of a MIDI device . Stores the MIDI status.  


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

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Midi\-Status} ()
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
{\bf $\sim$Midi\-Status} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void {\bf key\-Pressure} ({\bf uchar} chn, {\bf uchar} note, {\bf uchar} vel)
\begin{CompactList}\small\item\em Stores a new value for the key aftertouch. \item\end{CompactList}\item 
void {\bf chn\-Patch\-Change} ({\bf uchar} chn, {\bf uchar} patch)
\begin{CompactList}\small\item\em Stores a new patch in channel {\tt chn}. \item\end{CompactList}\item 
{\bf uchar} {\bf chn\-Patch} ({\bf uchar} chn)
\begin{CompactList}\small\item\em Returns the patch currently used in channel {\tt chn}. \item\end{CompactList}\item 
void {\bf chn\-Pressure} ({\bf uchar} chn, {\bf uchar} vel)
\begin{CompactList}\small\item\em Stores a new channel pressure value in channel {\tt chn}. \item\end{CompactList}\item 
{\bf uchar} {\bf chn\-Pressure} ({\bf uchar} chn)
\begin{CompactList}\small\item\em Returns the pressure value currently used in channel {\tt chn}. \item\end{CompactList}\item 
void {\bf chn\-Pitch\-Bender} ({\bf uchar} chn, {\bf uchar} lsb, {\bf uchar} msb)
\begin{CompactList}\small\item\em Stores a new pitch bender value in channel chn. \item\end{CompactList}\item 
int {\bf chn\-Pitch\-Bender} ({\bf uchar} chn)
\begin{CompactList}\small\item\em Returns the pitch bender value used in channel {\tt chn}. \item\end{CompactList}\item 
void {\bf chn\-Controller} ({\bf uchar} chn, {\bf uchar} ctl, {\bf uchar} v)
\begin{CompactList}\small\item\em Stores a new value for controller {\tt ctl} in channel {\tt chn}. \item\end{CompactList}\item 
{\bf uchar} {\bf chn\-Controller} ({\bf uchar} chn, {\bf uchar} ctl)
\begin{CompactList}\small\item\em Returns the value used for controller {\tt ctl} in channel {\tt chn}. \item\end{CompactList}\item 
void {\bf sysex} ({\bf uchar} $\ast$data, {\bf ulong} size)
\begin{CompactList}\small\item\em Stores a sysex message that will be send in the next call to send\-Data. \item\end{CompactList}\item 
void {\bf tmr\-Set\-Tempo} (int v)
\begin{CompactList}\small\item\em Sets the tempo. \item\end{CompactList}\item 
void {\bf send\-Data} (class {\bf Device\-Manager} $\ast$midi, int gm=1)
\begin{CompactList}\small\item\em Sends the current MIDI state to the {\bf Device\-Manager}{\rm (p.\,\pageref{classDeviceManager})} object used as parameter (you should have already set the default device to the one you want to use). \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Stores the status of a MIDI device . Stores the MIDI status. 

That is, current patch in each channel, controller settings, pitch bender value, etc.

This is used to \char`\"{}play\char`\"{} with all those values and then send them to the MIDI device just by using {\bf send\-Data}{\rm (p.\,\pageref{classMidiStatus_a13})}()

\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 40 of file midistat.h.

\subsection{Constructor \& Destructor Documentation}
\index{MidiStatus@{Midi\-Status}!MidiStatus@{MidiStatus}}
\index{MidiStatus@{MidiStatus}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Midi\-Status::Midi\-Status ()}\label{classMidiStatus_a0}


Constructor. 



Definition at line 36 of file midistat.cc.\index{MidiStatus@{Midi\-Status}!~MidiStatus@{$\sim$MidiStatus}}
\index{~MidiStatus@{$\sim$MidiStatus}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Midi\-Status::$\sim${\bf Midi\-Status} ()}\label{classMidiStatus_a1}


Destructor. 



Definition at line 54 of file midistat.cc.

\subsection{Member Function Documentation}
\index{MidiStatus@{Midi\-Status}!keyPressure@{keyPressure}}
\index{keyPressure@{keyPressure}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::key\-Pressure ({\bf uchar} {\em chn}, {\bf uchar} {\em note}, {\bf uchar} {\em vel})}\label{classMidiStatus_a2}


Stores a new value for the key aftertouch. 

\begin{Desc}
\item[See also:]{\bf Midi\-Out::key\-Pressure()}{\rm (p.\,\pageref{classMidiOut_a10})} \end{Desc}
\index{MidiStatus@{Midi\-Status}!chnPatchChange@{chnPatchChange}}
\index{chnPatchChange@{chnPatchChange}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::chn\-Patch\-Change ({\bf uchar} {\em chn}, {\bf uchar} {\em patch})}\label{classMidiStatus_a3}


Stores a new patch in channel {\tt chn}. 

\begin{Desc}
\item[See also:]{\bf chn\-Patch()}{\rm (p.\,\pageref{classMidiStatus_a4})} 

{\bf Midi\-Out::chn\-Patch\-Change()}{\rm (p.\,\pageref{classMidiOut_a11})} \end{Desc}


Definition at line 61 of file midistat.cc.

Referenced by Midi\-Player::set\-Pos().\index{MidiStatus@{Midi\-Status}!chnPatch@{chnPatch}}
\index{chnPatch@{chnPatch}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} Midi\-Status::chn\-Patch ({\bf uchar} {\em chn})\hspace{0.3cm}{\tt  [inline]}}\label{classMidiStatus_a4}


Returns the patch currently used in channel {\tt chn}. 



Definition at line 86 of file midistat.h.\index{MidiStatus@{Midi\-Status}!chnPressure@{chnPressure}}
\index{chnPressure@{chnPressure}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::chn\-Pressure ({\bf uchar} {\em chn}, {\bf uchar} {\em vel})}\label{classMidiStatus_a5}


Stores a new channel pressure value in channel {\tt chn}. 

\begin{Desc}
\item[See also:]{\bf Midi\-Out::chn\-Pressure()}{\rm (p.\,\pageref{classMidiOut_a12})} \end{Desc}


Definition at line 66 of file midistat.cc.

Referenced by Midi\-Player::set\-Pos().\index{MidiStatus@{Midi\-Status}!chnPressure@{chnPressure}}
\index{chnPressure@{chnPressure}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} Midi\-Status::chn\-Pressure ({\bf uchar} {\em chn})\hspace{0.3cm}{\tt  [inline]}}\label{classMidiStatus_a6}


Returns the pressure value currently used in channel {\tt chn}. 



Definition at line 97 of file midistat.h.\index{MidiStatus@{Midi\-Status}!chnPitchBender@{chnPitchBender}}
\index{chnPitchBender@{chnPitchBender}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::chn\-Pitch\-Bender ({\bf uchar} {\em chn}, {\bf uchar} {\em lsb}, {\bf uchar} {\em msb})}\label{classMidiStatus_a7}


Stores a new pitch bender value in channel chn. 



Definition at line 71 of file midistat.cc.

Referenced by Midi\-Player::set\-Pos().\index{MidiStatus@{Midi\-Status}!chnPitchBender@{chnPitchBender}}
\index{chnPitchBender@{chnPitchBender}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Midi\-Status::chn\-Pitch\-Bender ({\bf uchar} {\em chn})\hspace{0.3cm}{\tt  [inline]}}\label{classMidiStatus_a8}


Returns the pitch bender value used in channel {\tt chn}. 



Definition at line 107 of file midistat.h.\index{MidiStatus@{Midi\-Status}!chnController@{chnController}}
\index{chnController@{chnController}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::chn\-Controller ({\bf uchar} {\em chn}, {\bf uchar} {\em ctl}, {\bf uchar} {\em v})}\label{classMidiStatus_a9}


Stores a new value for controller {\tt ctl} in channel {\tt chn}. 



Definition at line 76 of file midistat.cc.

Referenced by Midi\-Player::set\-Pos().\index{MidiStatus@{Midi\-Status}!chnController@{chnController}}
\index{chnController@{chnController}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} Midi\-Status::chn\-Controller ({\bf uchar} {\em chn}, {\bf uchar} {\em ctl})\hspace{0.3cm}{\tt  [inline]}}\label{classMidiStatus_a10}


Returns the value used for controller {\tt ctl} in channel {\tt chn}. 



Definition at line 117 of file midistat.h.\index{MidiStatus@{Midi\-Status}!sysex@{sysex}}
\index{sysex@{sysex}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::sysex ({\bf uchar} $\ast$ {\em data}, {\bf ulong} {\em size})}\label{classMidiStatus_a11}


Stores a sysex message that will be send in the next call to send\-Data. 

\index{MidiStatus@{Midi\-Status}!tmrSetTempo@{tmrSetTempo}}
\index{tmrSetTempo@{tmrSetTempo}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::tmr\-Set\-Tempo (int {\em v})}\label{classMidiStatus_a12}


Sets the tempo. 

\begin{Desc}
\item[See also:]{\bf Device\-Manager::tmr\-Set\-Tempo()}{\rm (p.\,\pageref{classDeviceManager_a22})} \end{Desc}


Definition at line 84 of file midistat.cc.

Referenced by Midi\-Player::set\-Pos().\index{MidiStatus@{Midi\-Status}!sendData@{sendData}}
\index{sendData@{sendData}!MidiStatus@{Midi\-Status}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Midi\-Status::send\-Data (class {\bf Device\-Manager} $\ast$ {\em midi}, int {\em gm} = 1)}\label{classMidiStatus_a13}


Sends the current MIDI state to the {\bf Device\-Manager}{\rm (p.\,\pageref{classDeviceManager})} object used as parameter (you should have already set the default device to the one you want to use). 

The {\tt gm} parameter specifies if the patches used follow the GM standard (1), or follow the MT32 standard (0), in which case, they will be converted to GM before being sent. 

Definition at line 89 of file midistat.cc.

References Device\-Manager::chn\-Controller(), Device\-Manager::chn\-Patch\-Change(), Device\-Manager::chn\-Pitch\-Bender(), Device\-Manager::chn\-Pressure(), Device\-Manager::sync(), and Device\-Manager::tmr\-Set\-Tempo().

Referenced by Midi\-Player::play().

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