Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::MidiCommandFilter Class Reference

Filter for MidiCommands. More...

#include <MidiCommandFilter.h>

Inheritance diagram for TSE3::MidiCommandFilter:

Inheritance graph
[legend]
Collaboration diagram for TSE3::MidiCommandFilter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MidiCommandFilter ()
bool filter (MidiCommand type) const
void setFilterStatus (MidiCommand type, const bool status)

Detailed Description

Filter for MidiCommands.

This class provides a configurable filter for the different kinds of MidiCommand. It tells it's users whether a given MidiCommand is to be used or not.

The MidiCommandFilter considers MidiCommand_NoteOff and MidiCommand_NoteOns to be the same (otherwise you could produce 'hanging notes').

Author:
Pete Goodliffe
Version:
3.00
See also:
MidiCommand


Constructor & Destructor Documentation

TSE3::MidiCommandFilter::MidiCommandFilter  )  [inline]
 

By default, all the filters are enabled, that is all MidiCommands are passed through.


Member Function Documentation

bool TSE3::MidiCommandFilter::filter MidiCommand  type  )  const
 

Returns the status of a MidiCommand filter.

Parameters:
type A MidiCommand to filter (only the status is inspected)
Returns:
A boolean filter value: true for the MidiCommand being allowed through the filter, false for the MidiCommand being filtered out.

void TSE3::MidiCommandFilter::setFilterStatus MidiCommand  type,
const bool  status
 

Sets the status of a MidiCommand filter.

Parameters:
type A MidiCommand to set a filter for (only the status is inspected)
A boolean filter value: true to allow the MidiCommand through the filter, false to prevent the MidiCommand passing the filter.


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:46:25 2005 for TSE3 by doxygen 1.3.2