#include <MidiFilter.h>
Inheritance diagram for TSE3::MidiFilter:
Public Member Functions | |
MidiFilter () | |
MidiFilter (const MidiFilter &) | |
virtual | ~MidiFilter () |
MidiFilter & | operator= (const MidiFilter &) |
bool | status () const |
void | setStatus (bool s) |
bool | channelFilter (int c) const |
void | setChannelFilter (int c, bool val) |
int | channel () const |
void | setChannel (int c) |
int | port () const |
void | setPort (int p) |
Clock | offset () const |
void | setOffset (Clock o) |
int | timeScale () const |
void | setTimeScale (int t) |
Clock | quantise () const |
void | setQuantise (Clock q) |
Clock | minLength () const |
void | setMinLength (Clock ml) |
Clock | maxLength () const |
void | setMaxLength (Clock ml) |
int | transpose () const |
void | setTranspose (int t) |
int | minVelocity () const |
void | setMinVelocity (int v) |
int | maxVelocity () const |
void | setMaxVelocity (int v) |
Clock | velocityScale () const |
void | setVelocityScale (int v) |
virtual MidiEvent | filter (const MidiEvent &e) const |
virtual void | save (std::ostream &o, int i) const |
virtual void | load (std::istream &i, SerializableLoadInfo &info) |
This the a standard (and comprehensive) Filter object type that is used by the TSE3 library.
There is provision for the following features:
|
Creates a MidiFilter with the default parameters which leave unchanged. |
|
|
|
|
|
|
|
Returns the status value. A value of false means the filter blocks all output, returning MidiCommand_Invalid instead of output
|
|
Set the status value.
|
|
Returns the value of a MIDI channel filter. If true then events on this MIDI channel are allowed to pass through filter. If false, events are not passed through filter.
|
|
Sets the value of a channel filter.
|
|
Returns the MIDI channel value. A value of MidiCommand::SameChannel means do not force to a particular channel.
|
|
Set the channel value.
|
|
Returns the MIDI port value. A value of MidiCommand::SamePort means do not force to a particular port.
|
|
Set the port value.
|
|
Returns the time offset value.
|
|
Sets the time offset value.
|
|
Returns the time scale value. A value of 100 will have no effect. The value is a percentage that ranges from 1 to 500.
|
|
Set the time scale value.
|
|
Returns the quantise value. This is a linear quantise resolution that MidiEvent times will be 'snapped' to. A value of zero means do not quantise.
|
|
Set the quantise value.
|
|
Returns the minimum note length. This is applied to MidiCommand_NoteOn events to ensure that they are of at least a certain duration. A value of 0 represents no minimum length.
|
|
Set the minimum length value.
|
|
Returns the minimum note length. This is applied to MidiCommand_NoteOn events to ensure that they are of at least a certain duration. A value of -1 represents to maximum length.
|
|
Set the maximum length value.
|
|
Returns the transpose value. This is an integer number that is added to the value of notes in any note-related MidiEvent. This can range between -127 to +127
|
|
Set the transport value.
|
|
Returns the minimum velocity window value. Note with veloicties below this value will have their velocity set to this value. This is useful to prevent quiet notes from not being heard, for example. A value of 0 will have no effect, and is considered 'off'.
|
|
Set the minimum velocity window value.
|
|
Returns the maximum velocity window value. Note with velocities above this value will have their veolcity set to this value. This is useful to prevent loud notes from drowning out other notes, for example. A value of 127 will have no effect, and is considered 'off'.
|
|
Set the maximum velocity window value.
|
|
Returns the velocity scale value. This value scales the time value of a MidiEvent. A value of 100 will have no effect. The value is a percentage that ranges from 1 to 200.
|
|
Set the velocity scale value.
|
|
Implements TSE3::Filter. |
|
Reimplemented from TSE3::Serializable. |
|
Reimplemented from TSE3::Serializable. |