76 void noteOff (
int noteNumber,
int midiChannel = -1);
82 bool isLegacy =
false;
83 std::unique_ptr<MPEZoneLayout::Zone> zone;
84 int channelIncrement, numChannels, firstChannel, lastChannel, midiChannelLastAssigned;
90 int lastNotePlayed = -1;
91 bool isFree()
const noexcept {
return notes.
isEmpty(); }
93 MidiChannel midiChannels[17];
96 int findMidiChannelPlayingClosestNonequalNote (
int noteNumber) noexcept;
110 static const uint32 notMPE = 0;
125 void remapMidiChannelIfNeeded (
MidiMessage& message, uint32 mpeSourceID) noexcept;
129 void reset() noexcept;
132 void clearChannel (
int channel) noexcept;
135 void clearSource (uint32 mpeSourceID);
140 int channelIncrement;
141 int firstChannel, lastChannel;
143 uint32 sourceAndChannel[17];
148 bool applyRemapIfExisting (
int channel, uint32 sourceAndChannelID,
MidiMessage& m) noexcept;
149 int getBestChanToReuse() const noexcept;
154 bool messageIsNoteData (const
MidiMessage& m) {
return (*m.getRawData() & 0xf0) != 0xf0; }
This class represents the current MPE zone layout of a device capable of handling MPE...
Encapsulates a MIDI message.
void noteOff(int noteNumber, int midiChannel=-1)
You must call this method for all note-offs that you receive so that this class can keep track of the...
MPEChannelAssigner(MPEZoneLayout::Zone zoneToUse)
Constructor.
This struct represents an MPE zone.
This class handles the logic for remapping MIDI note messages from multiple MPE sources onto a specif...
This class handles the assignment of new MIDI notes to member channels of an active MPE zone...
void allNotesOff()
Call this to clear all currently playing notes.
bool isEmpty() const noexcept
Returns true if the array is empty, false otherwise.
int findMidiChannelForNewNote(int noteNumber) noexcept
This method will use a set of rules recommended in the MPE specification to determine which member ch...