FMOut Class Reference
FM device output class .Sends MIDI events to FM devices. More...
#include <fmout.h>
Inheritance diagram for FMOut:


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 .Sends MIDI events to FM devices.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
- 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
|
Constructor. See MidiOut::MidiOut() for more information. Definition at line 45 of file fmout.cc. References MidiOut::_ok, MidiOut::device, MidiOut::devicetype, and MidiOut::seqfd. |
|
Destructor.
Definition at line 60 of file fmout.cc. References closeDev(). |
Member Function Documentation
|
See MidiOut::openDev().
Reimplemented from MidiOut. Definition at line 72 of file fmout.cc. References MidiOut::_ok, and MidiOut::seqfd. |
|
See MidiOut::closeDev().
Reimplemented from MidiOut. Definition at line 89 of file fmout.cc. References VoiceManager::clearLists(), MidiOut::ok(), and MidiOut::seqfd. Referenced by ~FMOut(). |
|
See MidiOut::initDev().
Reimplemented from MidiOut. Definition at line 97 of file fmout.cc. References chnController(), MidiOut::chnmute, chnPatchChange(), chnPitchBender(), chnPressure(), MidiOut::device, VoiceManager::note(), MidiOut::ok(), MidiOut::seqfd, and sysex(). |
|
See MidiOut::noteOn().
Reimplemented from MidiOut. Definition at line 218 of file fmout.cc. References VoiceManager::allocateVoice(), MidiOut::chnbender, MidiOut::chnpatch, MidiOut::chnpressure, MidiOut::device, MidiOut::map, noteOff(), MidiMapper::patch(), and patch(). |
|
See MidiOut::noteOff().
Reimplemented from MidiOut. Definition at line 251 of file fmout.cc. References VoiceManager::deallocateVoice(), MidiOut::device, VoiceManager::initSearch(), and VoiceManager::search(). Referenced by noteOn(). |
|
Reimplemented from MidiOut. Definition at line 266 of file fmout.cc. References MidiOut::device, VoiceManager::initSearch(), and VoiceManager::search(). |
|
See MidiOut::chnPatchChange().
Reimplemented from MidiOut. Definition at line 274 of file fmout.cc. References MidiOut::chnpatch, MidiOut::device, VoiceManager::initSearch(), MidiOut::map, MidiMapper::patch(), and VoiceManager::search(). Referenced by initDev(). |
|
Reimplemented from MidiOut. Definition at line 285 of file fmout.cc. References MidiOut::chnpressure, MidiOut::device, VoiceManager::initSearch(), and VoiceManager::search(). Referenced by initDev(). |
|
See MidiOut::chnPitchBender().
Reimplemented from MidiOut. Definition at line 295 of file fmout.cc. References MidiOut::chnbender, MidiOut::device, VoiceManager::initSearch(), and VoiceManager::search(). Referenced by initDev(). |
|
Reimplemented from MidiOut. Definition at line 306 of file fmout.cc. References MidiOut::chncontroller, MidiOut::device, VoiceManager::initSearch(), VoiceManager::search(), and MidiOut::volumepercentage. Referenced by initDev(). |
|
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. Referenced by initDev(). |
|
See MidiOut::setVolumePercentage().
Reimplemented from MidiOut. Definition at line 337 of file fmout.cc. References MidiOut::volumepercentage. |
|
Returns
Definition at line 207 of file fmout.cc. Referenced by noteOn(). |
|
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. |
The documentation for this class was generated from the following files: