\section{Midi\-Event Struct Reference}
\label{structMidiEvent}\index{MidiEvent@{MidiEvent}}
An structure that represents a MIDI event. Represents a MIDI event.  


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

\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
{\bf uchar} {\bf command}
\begin{CompactList}\small\item\em MIDI Command. \item\end{CompactList}\item 
{\bf uchar} {\bf chn}
\begin{CompactList}\small\item\em Channel. \item\end{CompactList}\item 
{\bf uchar} {\bf note}
\begin{CompactList}\small\item\em Note. \item\end{CompactList}\item 
{\bf uchar} {\bf vel}
\begin{CompactList}\small\item\em Velocity. \item\end{CompactList}\item 
{\bf uchar} {\bf patch}
\begin{CompactList}\small\item\em Patch (if {\bf command}{\rm (p.\,\pageref{structMidiEvent_o0})} was a change patch command). \item\end{CompactList}\item 
{\bf uchar} {\bf ctl}
\begin{CompactList}\small\item\em Patch (if {\bf command}{\rm (p.\,\pageref{structMidiEvent_o0})} was a controller command). \item\end{CompactList}\item 
{\bf uchar} {\bf d1}
\begin{CompactList}\small\item\em Data 1. \item\end{CompactList}\item 
{\bf uchar} {\bf d2}
\begin{CompactList}\small\item\em Data 2. \item\end{CompactList}\item 
{\bf uchar} {\bf d3}
\begin{CompactList}\small\item\em Data 3. \item\end{CompactList}\item 
{\bf uchar} {\bf d4}
\begin{CompactList}\small\item\em Data 4. \item\end{CompactList}\item 
{\bf uchar} {\bf d5}
\begin{CompactList}\small\item\em Data 5. \item\end{CompactList}\item 
{\bf uchar} {\bf d6}
\begin{CompactList}\small\item\em Data 6. \item\end{CompactList}\item 
{\bf ulong} {\bf length}
\begin{CompactList}\small\item\em Length of the generic {\bf data}{\rm (p.\,\pageref{structMidiEvent_o13})} variable. \item\end{CompactList}\item 
{\bf uchar} $\ast$ {\bf data}
\begin{CompactList}\small\item\em The data for commands like text, sysex, etc. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
An structure that represents a MIDI event. Represents a MIDI event. 

\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 track.h.

\subsection{Member Data Documentation}
\index{MidiEvent@{Midi\-Event}!command@{command}}
\index{command@{command}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::command}}\label{structMidiEvent_o0}


MIDI Command. 

Caution, if a command doesn't use a variable, it may contain garbage. 

Definition at line 44 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!chn@{chn}}
\index{chn@{chn}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::chn}}\label{structMidiEvent_o1}


Channel. 



Definition at line 49 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!note@{note}}
\index{note@{note}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::note}}\label{structMidiEvent_o2}


Note. 



Definition at line 54 of file track.h.

Referenced by Midi\-Player::play(), and Midi\-Track::read\-Event().\index{MidiEvent@{Midi\-Event}!vel@{vel}}
\index{vel@{vel}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::vel}}\label{structMidiEvent_o3}


Velocity. 



Definition at line 59 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!patch@{patch}}
\index{patch@{patch}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::patch}}\label{structMidiEvent_o4}


Patch (if {\bf command}{\rm (p.\,\pageref{structMidiEvent_o0})} was a change patch command). 



Definition at line 64 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!ctl@{ctl}}
\index{ctl@{ctl}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::ctl}}\label{structMidiEvent_o5}


Patch (if {\bf command}{\rm (p.\,\pageref{structMidiEvent_o0})} was a controller command). 



Definition at line 69 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!d1@{d1}}
\index{d1@{d1}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::d1}}\label{structMidiEvent_o6}


Data 1. 



Definition at line 74 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!d2@{d2}}
\index{d2@{d2}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::d2}}\label{structMidiEvent_o7}


Data 2. 



Definition at line 79 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!d3@{d3}}
\index{d3@{d3}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::d3}}\label{structMidiEvent_o8}


Data 3. 



Definition at line 84 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().\index{MidiEvent@{Midi\-Event}!d4@{d4}}
\index{d4@{d4}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::d4}}\label{structMidiEvent_o9}


Data 4. 



Definition at line 89 of file track.h.

Referenced by Midi\-Track::read\-Event().\index{MidiEvent@{Midi\-Event}!d5@{d5}}
\index{d5@{d5}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::d5}}\label{structMidiEvent_o10}


Data 5. 



Definition at line 94 of file track.h.

Referenced by Midi\-Track::read\-Event().\index{MidiEvent@{Midi\-Event}!d6@{d6}}
\index{d6@{d6}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf Midi\-Event::d6}}\label{structMidiEvent_o11}


Data 6. 



Definition at line 99 of file track.h.\index{MidiEvent@{Midi\-Event}!length@{length}}
\index{length@{length}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf ulong} {\bf Midi\-Event::length}}\label{structMidiEvent_o12}


Length of the generic {\bf data}{\rm (p.\,\pageref{structMidiEvent_o13})} variable. 



Definition at line 104 of file track.h.

Referenced by Midi\-Track::read\-Event().\index{MidiEvent@{Midi\-Event}!data@{data}}
\index{data@{data}!MidiEvent@{Midi\-Event}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar}$\ast$ {\bf Midi\-Event::data}}\label{structMidiEvent_o13}


The data for commands like text, sysex, etc. 



Definition at line 109 of file track.h.

Referenced by Midi\-Player::play(), Midi\-Track::read\-Event(), and Midi\-Player::set\-Pos().

The documentation for this struct was generated from the following file:\begin{CompactItemize}
\item 
track.h\end{CompactItemize}
