#include <MidiMapper.h>
Inheritance diagram for TSE3::MidiMapper:
Public Member Functions | |
MidiMapper () | |
virtual | ~MidiMapper () |
const int | map (int fromPort) const |
void | setMap (int fromPort, int toPort) |
int | maximumMap () const |
virtual MidiEvent | filter (const MidiEvent &me) const |
void | reset () |
The MidiMapper maintains a table mapping logical port destinations with where should /really/ be sent.
This is used by the Transport class prior to sending an event to a MIDI interface.
This interface allows you to establish arbitrary mappings. For ports that aren't mapped, the mapper will let the event through unchanged.
|
The default MidiMapper object performs no mapping whatsoever. |
|
|
|
Returns the mapping for a particular port.
If no mapping has been set for the specified port, the return value will be the same as
|
|
Set the mapping for a particular channel and port
For
To reset a mapping rule, you can just set
|
|
The MidiMapper holds lists of port mappings. This method returns the maximum port a mapping has been made for.
|
|
Implements TSE3::Filter. |
|
Reset the MidiMapper to a default state (i.e. no mappings). |