.TH "MidiStatus" 3 "28 Jan 2004" "libkmid Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
MidiStatus \- Stores the status of a MIDI device . Stores the MIDI status.  

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

.in +1c
.ti -1c
.RI "\fBMidiStatus\fP ()"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fB~MidiStatus\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "void \fBkeyPressure\fP (\fBuchar\fP chn, \fBuchar\fP note, \fBuchar\fP vel)"
.br
.RI "\fIStores a new value for the key aftertouch. \fP"
.ti -1c
.RI "void \fBchnPatchChange\fP (\fBuchar\fP chn, \fBuchar\fP patch)"
.br
.RI "\fIStores a new patch in channel \fCchn\fP. \fP"
.ti -1c
.RI "\fBuchar\fP \fBchnPatch\fP (\fBuchar\fP chn)"
.br
.RI "\fIReturns the patch currently used in channel \fCchn\fP. \fP"
.ti -1c
.RI "void \fBchnPressure\fP (\fBuchar\fP chn, \fBuchar\fP vel)"
.br
.RI "\fIStores a new channel pressure value in channel \fCchn\fP. \fP"
.ti -1c
.RI "\fBuchar\fP \fBchnPressure\fP (\fBuchar\fP chn)"
.br
.RI "\fIReturns the pressure value currently used in channel \fCchn\fP. \fP"
.ti -1c
.RI "void \fBchnPitchBender\fP (\fBuchar\fP chn, \fBuchar\fP lsb, \fBuchar\fP msb)"
.br
.RI "\fIStores a new pitch bender value in channel chn. \fP"
.ti -1c
.RI "int \fBchnPitchBender\fP (\fBuchar\fP chn)"
.br
.RI "\fIReturns the pitch bender value used in channel \fCchn\fP. \fP"
.ti -1c
.RI "void \fBchnController\fP (\fBuchar\fP chn, \fBuchar\fP ctl, \fBuchar\fP v)"
.br
.RI "\fIStores a new value for controller \fCctl\fP in channel \fCchn\fP. \fP"
.ti -1c
.RI "\fBuchar\fP \fBchnController\fP (\fBuchar\fP chn, \fBuchar\fP ctl)"
.br
.RI "\fIReturns the value used for controller \fCctl\fP in channel \fCchn\fP. \fP"
.ti -1c
.RI "void \fBsysex\fP (\fBuchar\fP *data, \fBulong\fP size)"
.br
.RI "\fIStores a sysex message that will be send in the next call to sendData. \fP"
.ti -1c
.RI "void \fBtmrSetTempo\fP (int v)"
.br
.RI "\fISets the tempo. \fP"
.ti -1c
.RI "void \fBsendData\fP (class \fBDeviceManager\fP *midi, int gm=1)"
.br
.RI "\fISends the current MIDI state to the \fBDeviceManager\fP object used as parameter (you should have already set the default device to the one you want to use). \fP"
.in -1c
.SH "Detailed Description"
.PP 
Stores the status of a MIDI device . Stores the MIDI status. 

That is, current patch in each channel, controller settings, pitch bender value, etc.
.PP
This is used to 'play' with all those values and then send them to the MIDI device just by using \fBsendData\fP()
.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 40 of file midistat.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "MidiStatus::MidiStatus ()"
.PP
Constructor. Definition at line 36 of file midistat.cc.
.SS "MidiStatus::~\fBMidiStatus\fP ()"
.PP
Destructor. Definition at line 54 of file midistat.cc.
.SH "Member Function Documentation"
.PP 
.SS "void MidiStatus::keyPressure (\fBuchar\fP chn, \fBuchar\fP note, \fBuchar\fP vel)"
.PP
Stores a new value for the key aftertouch. \fBSee also:\fP
.RS 4
\fBMidiOut::keyPressure()\fP 
.RE
.PP

.SS "void MidiStatus::chnPatchChange (\fBuchar\fP chn, \fBuchar\fP patch)"
.PP
Stores a new patch in channel \fCchn\fP. \fBSee also:\fP
.RS 4
\fBchnPatch()\fP 
.PP
\fBMidiOut::chnPatchChange()\fP 
.RE
.PP
Definition at line 61 of file midistat.cc.
.PP
Referenced by MidiPlayer::setPos().
.SS "\fBuchar\fP MidiStatus::chnPatch (\fBuchar\fP chn)\fC [inline]\fP"
.PP
Returns the patch currently used in channel \fCchn\fP. Definition at line 86 of file midistat.h.
.SS "void MidiStatus::chnPressure (\fBuchar\fP chn, \fBuchar\fP vel)"
.PP
Stores a new channel pressure value in channel \fCchn\fP. \fBSee also:\fP
.RS 4
\fBMidiOut::chnPressure()\fP 
.RE
.PP
Definition at line 66 of file midistat.cc.
.PP
Referenced by MidiPlayer::setPos().
.SS "\fBuchar\fP MidiStatus::chnPressure (\fBuchar\fP chn)\fC [inline]\fP"
.PP
Returns the pressure value currently used in channel \fCchn\fP. Definition at line 97 of file midistat.h.
.SS "void MidiStatus::chnPitchBender (\fBuchar\fP chn, \fBuchar\fP lsb, \fBuchar\fP msb)"
.PP
Stores a new pitch bender value in channel chn. Definition at line 71 of file midistat.cc.
.PP
Referenced by MidiPlayer::setPos().
.SS "int MidiStatus::chnPitchBender (\fBuchar\fP chn)\fC [inline]\fP"
.PP
Returns the pitch bender value used in channel \fCchn\fP. Definition at line 107 of file midistat.h.
.SS "void MidiStatus::chnController (\fBuchar\fP chn, \fBuchar\fP ctl, \fBuchar\fP v)"
.PP
Stores a new value for controller \fCctl\fP in channel \fCchn\fP. Definition at line 76 of file midistat.cc.
.PP
Referenced by MidiPlayer::setPos().
.SS "\fBuchar\fP MidiStatus::chnController (\fBuchar\fP chn, \fBuchar\fP ctl)\fC [inline]\fP"
.PP
Returns the value used for controller \fCctl\fP in channel \fCchn\fP. Definition at line 117 of file midistat.h.
.SS "void MidiStatus::sysex (\fBuchar\fP * data, \fBulong\fP size)"
.PP
Stores a sysex message that will be send in the next call to sendData. 
.SS "void MidiStatus::tmrSetTempo (int v)"
.PP
Sets the tempo. \fBSee also:\fP
.RS 4
\fBDeviceManager::tmrSetTempo()\fP 
.RE
.PP
Definition at line 84 of file midistat.cc.
.PP
Referenced by MidiPlayer::setPos().
.SS "void MidiStatus::sendData (class \fBDeviceManager\fP * midi, int gm = 1)"
.PP
Sends the current MIDI state to the \fBDeviceManager\fP object used as parameter (you should have already set the default device to the one you want to use). The \fCgm\fP 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.
.PP
References DeviceManager::chnController(), DeviceManager::chnPatchChange(), DeviceManager::chnPitchBender(), DeviceManager::chnPressure(), DeviceManager::sync(), and DeviceManager::tmrSetTempo().
.PP
Referenced by MidiPlayer::play().

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