gxMidiStatusMap Class Reference

#include <gxMidiStatusMap.h>

List of all members.

Public Member Functions

 gxMidiStatusMap ()
virtual ~gxMidiStatusMap ()
virtual gxMidiTransformcastMidiTransform ()=0
 The midi status map is actually an instance of a gxMidiTransform.
virtual void enableByStatusType (int statusType, bool enable=true)=0
 Enable (or disable) all messages of a given status type for all midi channels.
virtual void enableByChannel (int channel, bool enable=true)=0
 Enable (or disable) all messages of a given status channel for all status types.
virtual int getMapEntry (int input)=0
 Returns a single entry in the status map.
virtual void setOutputChannel (int channel)=0
 Modify the mapping table such that all output channel voice messages are set to a specific midi channel.
virtual void setMapEntry (int input, int output)=0
 Set the status transform for a single status byte value.
virtual void reset (bool enable=true)=0
 Reset the status transform to a known value.


Constructor & Destructor Documentation

gxMidiStatusMap::gxMidiStatusMap  )  [inline]
 

virtual gxMidiStatusMap::~gxMidiStatusMap  )  [inline, virtual]
 


Member Function Documentation

virtual gxMidiTransform* gxMidiStatusMap::castMidiTransform  )  [pure virtual]
 

The midi status map is actually an instance of a gxMidiTransform.

Use this method to dynamically cast to the gxMidiTransform interface.

virtual void gxMidiStatusMap::enableByChannel int  channel,
bool  enable = true
[pure virtual]
 

Enable (or disable) all messages of a given status channel for all status types.

Enabling a channel will restore the identity mapping. Channel is one-base (1 - 16).

virtual void gxMidiStatusMap::enableByStatusType int  statusType,
bool  enable = true
[pure virtual]
 

Enable (or disable) all messages of a given status type for all midi channels.

Enabling a status type will restore the identity channel mapping (0 to 0, 1 to 1 etc.).

If the status type is F0, all system messages (F0 - FF) will be enabled or disabled as specified by "enable".

virtual int gxMidiStatusMap::getMapEntry int  input  )  [pure virtual]
 

Returns a single entry in the status map.

The input must be between 0x80 and 0xFF (note that a few of the 0xFn values are undefined by the midi spec, but the status map does not care). Returns the output status byte (an integer between 0x80 and 0xFF if the status byte is enabled, or -1 if disabled).

virtual void gxMidiStatusMap::reset bool  enable = true  )  [pure virtual]
 

Reset the status transform to a known value.

If enable is true, then the status transform is set to identity - output messages are identical to input messages. If enable is false, all messages are disabled.

virtual void gxMidiStatusMap::setMapEntry int  input,
int  output
[pure virtual]
 

Set the status transform for a single status byte value.

To filter out that status value, specify -1 as output

virtual void gxMidiStatusMap::setOutputChannel int  channel  )  [pure virtual]
 

Modify the mapping table such that all output channel voice messages are set to a specific midi channel.

Disabled status values are not affected. The channel number is 0-based (0 - 15). System message status values are not affected. Channel is one-base (1 - 16).


The documentation for this class was generated from the following file:
Generated on Mon Nov 21 01:01:37 2005 for gxLib by  doxygen 1.4.5