FMOut Class Reference
FM device output class .
More...
#include <fmout.h>
List of all members.
Public Member Functions |
| FMOut (int d=0, int total=12) |
| ~FMOut () |
virtual void | openDev (int sqfd) |
virtual void | closeDev (void) |
virtual void | initDev (void) |
virtual void | noteOn (uchar chn, uchar note, uchar vel) |
virtual void | noteOff (uchar chn, uchar note, uchar vel) |
virtual void | keyPressure (uchar chn, uchar note, uchar vel) |
virtual void | chnPatchChange (uchar chn, uchar patch) |
virtual void | chnPressure (uchar chn, uchar vel) |
virtual void | chnPitchBender (uchar chn, uchar lsb, uchar msb) |
virtual void | chnController (uchar chn, uchar ctl, uchar v) |
virtual void | sysex (uchar *data, ulong size) |
virtual void | setVolumePercentage (int i) |
int | patch (int p) |
Static Public Member Functions |
static void | setFMPatchesDirectory (const char *dir) |
Detailed Description
FM device output class .
FMOut is used to send MIDI events to FM devices, such as AdLib cards, or OPL3 synthesizers.
FMOut inherits MidiOut and supports the same simple API.
The preferred way to use this class is by selecting a FM device on the MidiManager and using a MidiManager object directly
Sends MIDI events to FM devices
- Version:
- 0.9.5 17/01/2000
- Author:
- Antonio Larrosa Jimenez <larrosa@kde.org>
Definition at line 43 of file fmout.h.
Constructor & Destructor Documentation
FMOut::FMOut |
( |
int |
d = 0 , |
|
|
int |
total = 12 | |
|
) |
| | |
Destructor.
Definition at line 60 of file fmout.cc.
Member Function Documentation
void FMOut::chnController |
( |
uchar |
chn, |
|
|
uchar |
ctl, |
|
|
uchar |
v | |
|
) |
| | [virtual] |
void FMOut::chnPatchChange |
( |
uchar |
chn, |
|
|
uchar |
patch | |
|
) |
| | [virtual] |
void FMOut::chnPitchBender |
( |
uchar |
chn, |
|
|
uchar |
lsb, |
|
|
uchar |
msb | |
|
) |
| | [virtual] |
void FMOut::chnPressure |
( |
uchar |
chn, |
|
|
uchar |
vel | |
|
) |
| | [virtual] |
void FMOut::closeDev |
( |
void |
|
) |
[virtual] |
void FMOut::initDev |
( |
void |
|
) |
[virtual] |
void FMOut::keyPressure |
( |
uchar |
chn, |
|
|
uchar |
note, |
|
|
uchar |
vel | |
|
) |
| | [virtual] |
void FMOut::noteOff |
( |
uchar |
chn, |
|
|
uchar |
note, |
|
|
uchar |
vel | |
|
) |
| | [virtual] |
void FMOut::noteOn |
( |
uchar |
chn, |
|
|
uchar |
note, |
|
|
uchar |
vel | |
|
) |
| | [virtual] |
void FMOut::openDev |
( |
int |
sqfd |
) |
[virtual] |
int FMOut::patch |
( |
int |
p |
) |
|
Returns p
if the patch p has been loaded, or another patch (already loaded) if p
hasn't been loaded.
Definition at line 207 of file fmout.cc.
void FMOut::setFMPatchesDirectory |
( |
const char * |
dir |
) |
[static] |
Sets the directory where the FM patches are stored, that is, where the std.o3, std.sb, drums.o3 and drums.sb files can be found.
It will store a copy of the parameter, so you should delete the memory used by the parameter you passed.
Definition at line 326 of file fmout.cc.
void FMOut::setVolumePercentage |
( |
int |
i |
) |
[virtual] |
void FMOut::sysex |
( |
uchar * |
data, |
|
|
ulong |
size | |
|
) |
| | [virtual] |
It's an empty function, as FM devices don't support System Exclusive messages.
Reimplemented from MidiOut.
Definition at line 321 of file fmout.cc.
The documentation for this class was generated from the following files: