class FMOut

Sends MIDI events to FM devices. More...

Definition#include <fmout.h>
InheritsMidiOut
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


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

FMOut ( int d=0, int total =12 )

Constructor. See MidiOut::MidiOut() for more information.

~FMOut ()

Destructor.

void openDev ( int sqfd )
[virtual]

See MidiOut::openDev()

Reimplemented from MidiOut

void closeDev ( void )
[virtual]

See MidiOut::closeDev()

Reimplemented from MidiOut

void initDev ( void )
[virtual]

See MidiOut::initDev()

Reimplemented from MidiOut

void noteOn ( uchar chn, uchar note, uchar vel )
[virtual]

See MidiOut::noteOn()

Reimplemented from MidiOut

void noteOff ( uchar chn, uchar note, uchar vel )
[virtual]

See MidiOut::noteOff()

Reimplemented from MidiOut

void keyPressure ( uchar chn, uchar note, uchar vel )
[virtual]

See MidiOut::keyPressure()

Reimplemented from MidiOut

void chnPatchChange ( uchar chn, uchar patch )
[virtual]

See MidiOut::chnPatchChange()

Reimplemented from MidiOut

void chnPressure ( uchar chn, uchar vel )
[virtual]

See MidiOut::chnPressure()

Reimplemented from MidiOut

void chnPitchBender ( uchar chn, uchar lsb, uchar msb )
[virtual]

See MidiOut::chnPitchBender()

Reimplemented from MidiOut

void chnController ( uchar chn, uchar ctl , uchar v )
[virtual]

See MidiOut::chnController()

Reimplemented from MidiOut

void sysex ( uchar *data,ulong size)
[virtual]

It's an empty function, as FM devices don't support System Exclusive messages

Reimplemented from MidiOut

void setVolumePercentage ( int i )
[virtual]

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)
[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.