GUSOut Class Reference
#include <gusout.h>
Inheritance diagram for GUSOut:

Detailed Description
Gravis Ultrasound synthesizer output class .Sends MIDI events to GUS synths.This class is used to send midi events to synthesizers on GUS cards.
GUSOut inherits MidiOut and supports the same simple API.
The recommended way to use this class is by using a DeviceManager object, and use the DeviceManager::setPatchesToUse() member which will call the setPatchesToUse() member in this class.
- Version:
- 0.9.5 17/01/2000
- Author:
- Antonio Larrosa Jimenez <larrosa@kde.org>
Definition at line 45 of file gusout.h.
Public Member Functions | |
GUSOut (int d=0, int total=12) | |
~GUSOut () | |
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) |
void | setPatchesToUse (int *patchesused) |
int | loadPatch (int pgm) |
int | patch (int p) |
Static Public Member Functions | |
static void | setGUSPatchesDirectory (const char *dir) |
Constructor & Destructor Documentation
GUSOut::GUSOut | ( | int | d = 0 , |
|
int | total = 12 | |||
) |
Member Function Documentation
void GUSOut::chnController | ( | uchar | chn, | |
uchar | ctl, | |||
uchar | v | |||
) | [virtual] |
void GUSOut::chnPatchChange | ( | uchar | chn, | |
uchar | patch | |||
) | [virtual] |
void GUSOut::chnPitchBender | ( | uchar | chn, | |
uchar | lsb, | |||
uchar | msb | |||
) | [virtual] |
void GUSOut::chnPressure | ( | uchar | chn, | |
uchar | vel | |||
) | [virtual] |
void GUSOut::closeDev | ( | void | ) | [virtual] |
void GUSOut::initDev | ( | void | ) | [virtual] |
void GUSOut::keyPressure | ( | uchar | chn, | |
uchar | note, | |||
uchar | vel | |||
) | [virtual] |
int GUSOut::loadPatch | ( | int | pgm | ) |
Loads a single patch on the synthesizer memory.
- Parameters:
-
pgm is the number of the GM patch when pgm is between 0 and 127. Values from 128 to 255 are used to represent the percussion instruments.
- Returns:
- 0 if OK and -1 if there was an error (patch not found, not enough memory, etc.)
- See also:
- patch()
void GUSOut::noteOff | ( | uchar | chn, | |
uchar | note, | |||
uchar | vel | |||
) | [virtual] |
void GUSOut::noteOn | ( | uchar | chn, | |
uchar | note, | |||
uchar | vel | |||
) | [virtual] |
void GUSOut::openDev | ( | int | sqfd | ) | [virtual] |
int GUSOut::patch | ( | int | p | ) |
Returns p if the patch with number p has been correctly loaded.
In the case it hasn't been loaded, it returns the number of another patch that is loaded and that should be used instead.
- See also:
- loadPatch()
void GUSOut::setGUSPatchesDirectory | ( | const char * | dir | ) | [static] |
void GUSOut::setPatchesToUse | ( | int * | patchesused | ) |
See DeviceManager::setPatchesToUse() .
All the information about this member is explained there because it's (for now) just a simple call to this function when the device used is a GUS device, and you're supposed to use a DeviceManager object instead of a GUSOut object except in rare ocassions.
- See also:
- patch()
void GUSOut::sysex | ( | uchar * | data, | |
ulong | size | |||
) | [virtual] |
The documentation for this class was generated from the following files: