#include <juce_MPEUtils.h>
Public Member Functions | |
MPEChannelRemapper (MPEZoneLayout::Zone zoneToRemap) | |
void | remapMidiChannelIfNeeded (MidiMessage &message, uint32 mpeSourceID) noexcept |
void | reset () noexcept |
void | clearChannel (int channel) noexcept |
void | clearSource (uint32 mpeSourceID) |
Static Public Attributes | |
static const uint32 | notMPE = 0 |
This class handles the logic for remapping MIDI note messages from multiple MPE sources onto a specified MPE zone.
Definition at line 107 of file juce_MPEUtils.h.
juce::MPEChannelRemapper::MPEChannelRemapper | ( | MPEZoneLayout::Zone | zoneToRemap | ) |
Constructor
Definition at line 157 of file juce_MPEUtils.cpp.
|
noexcept |
Clears a specified channel of this MPE zone.
Definition at line 219 of file juce_MPEUtils.cpp.
void juce::MPEChannelRemapper::clearSource | ( | uint32 | mpeSourceID | ) |
Clears all channels in use by a specified source.
Definition at line 224 of file juce_MPEUtils.cpp.
Referenced by remapMidiChannelIfNeeded().
|
noexcept |
Remaps the MIDI channel of the specified MIDI message (if necessary).
Note that the MidiMessage object passed in will have it's channel changed if it needs to be remapped.
message | the message to be remapped |
mpeSourceID | the ID of the MPE source of the message. This is up to the user to define and keep constant |
Definition at line 168 of file juce_MPEUtils.cpp.
|
noexcept |
Resets all the source & channel combinations.
Definition at line 213 of file juce_MPEUtils.cpp.
|
static |
Used to indicate that a particular source & channel combination is not currently using MPE.
Definition at line 111 of file juce_MPEUtils.h.
Referenced by clearChannel(), clearSource(), remapMidiChannelIfNeeded(), and reset().