OpenShot Library | OpenShotAudio
0.2.2
|
This class handles the logic for remapping MIDI note messages from multiple MPE sources onto a specified MPE zone. More...
#include <juce_MPEUtils.h>
Public Member Functions | |
MPEChannelRemapper (MPEZoneLayout::Zone zoneToRemap) | |
Constructor. | |
void | remapMidiChannelIfNeeded (MidiMessage &message, uint32 mpeSourceID) noexcept |
Remaps the MIDI channel of the specified MIDI message (if necessary). More... | |
void | reset () noexcept |
Resets all the source & channel combinations. More... | |
void | clearChannel (int channel) noexcept |
Clears a specified channel of this MPE zone. More... | |
void | clearSource (uint32 mpeSourceID) |
Clears all channels in use by a specified source. More... | |
Static Public Attributes | |
static const uint32 | notMPE = 0 |
Used to indicate that a particular source & channel combination is not currently using MPE. More... | |
This class handles the logic for remapping MIDI note messages from multiple MPE sources onto a specified MPE zone.
Definition at line 106 of file juce_MPEUtils.h.
|
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 158 of file juce_MPEUtils.cpp.
References clearSource(), and notMPE.
|
noexcept |
Resets all the source & channel combinations.
Definition at line 203 of file juce_MPEUtils.cpp.
References notMPE.
|
noexcept |
Clears a specified channel of this MPE zone.
Definition at line 209 of file juce_MPEUtils.cpp.
References notMPE.
void juce::MPEChannelRemapper::clearSource | ( | uint32 | mpeSourceID | ) |
Clears all channels in use by a specified source.
Definition at line 214 of file juce_MPEUtils.cpp.
References juce::MPEChannelAssigner::allNotesOff(), juce::MPEChannelAssigner::findMidiChannelForNewNote(), juce::MPEZoneLayout::getLowerZone(), juce::MPEZoneLayout::getUpperZone(), juce::MidiMessage::isNoteOff(), juce::MPEChannelAssigner::noteOff(), juce::MidiMessage::noteOff(), juce::MidiMessage::noteOn(), notMPE, juce::MidiMessage::setChannel(), juce::MPEZoneLayout::setLowerZone(), and juce::MPEZoneLayout::setUpperZone().
Referenced by remapMidiChannelIfNeeded().
|
static |
Used to indicate that a particular source & channel combination is not currently using MPE.
Definition at line 110 of file juce_MPEUtils.h.
Referenced by clearChannel(), clearSource(), remapMidiChannelIfNeeded(), and reset().