|
|
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
FMOut ( int d=0, int total =12 ) |
Constructor. See MidiOut::MidiOut() for more information.
~FMOut () |
Destructor.
void openDev ( int sqfd ) |
See MidiOut::openDev()
Reimplemented from MidiOut
void closeDev ( void ) |
See MidiOut::closeDev()
Reimplemented from MidiOut
void initDev ( void ) |
See MidiOut::initDev()
Reimplemented from MidiOut
void noteOn ( uchar chn, uchar note, uchar vel ) |
See MidiOut::noteOn()
Reimplemented from MidiOut
void noteOff ( uchar chn, uchar note, uchar vel ) |
See MidiOut::noteOff()
Reimplemented from MidiOut
void keyPressure ( uchar chn, uchar note, uchar vel ) |
See MidiOut::keyPressure()
Reimplemented from MidiOut
void chnPatchChange ( uchar chn, uchar patch ) |
See MidiOut::chnPatchChange()
Reimplemented from MidiOut
void chnPressure ( uchar chn, uchar vel ) |
See MidiOut::chnPressure()
Reimplemented from MidiOut
void chnPitchBender ( uchar chn, uchar lsb, uchar msb ) |
See MidiOut::chnPitchBender()
Reimplemented from MidiOut
void chnController ( uchar chn, uchar ctl , uchar v ) |
See MidiOut::chnController()
Reimplemented from MidiOut
void sysex ( uchar *data,ulong size) |
It's an empty function, as FM devices don't support System Exclusive messages
Reimplemented from MidiOut
void setVolumePercentage ( int i ) |
See MidiOut::setVolumePercentage()
Reimplemented from MidiOut
int patch (int p) |
Returns p
if the patch p has been loaded, or another patch (already loaded)
if p
hasn't been loaded.
void setFMPatchesDirectory (const char *dir) |
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.