class MidiCommandFilter

Filter for MidiCommands. More...

Full nameTSE3::MidiCommandFilter
Definition#include <MidiCommandFilter.h>
InheritsTSE3::Notifier [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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

See also: MidiCommand

 MidiCommandFilter ()

MidiCommandFilter

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

bool  filter (MidiCommand type)

filter

[const]

Returns the status of a MidiCommand filter.

Parameters:
typeA 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  setFilterStatus (MidiCommand type, const bool status)

setFilterStatus

Sets the status of a MidiCommand filter.

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