JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
juce::MPEChannelRemapper Class Reference

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).
 
void reset () noexcept
 Resets all the source & channel combinations.
 
void clearChannel (int channel) noexcept
 Clears a specified channel of this MPE zone.
 
void clearSource (uint32 mpeSourceID)
 Clears all channels in use by a specified source.
 

Static Public Attributes

static const uint32 notMPE
 Used to indicate that a particular source & channel combination is not currently using MPE.
 

Detailed Description

This class handles the logic for remapping MIDI note messages from multiple MPE sources onto a specified MPE zone.

@tags{Audio}

Definition at line 107 of file juce_MPEUtils.h.

Constructor & Destructor Documentation

◆ MPEChannelRemapper()

juce::MPEChannelRemapper::MPEChannelRemapper ( MPEZoneLayout::Zone  zoneToRemap)

Constructor.

Definition at line 157 of file juce_MPEUtils.cpp.

Member Function Documentation

◆ clearChannel()

void juce::MPEChannelRemapper::clearChannel ( int  channel)
noexcept

Clears a specified channel of this MPE zone.

Definition at line 219 of file juce_MPEUtils.cpp.

◆ clearSource()

void juce::MPEChannelRemapper::clearSource ( uint32  mpeSourceID)

Clears all channels in use by a specified source.

Definition at line 224 of file juce_MPEUtils.cpp.

◆ remapMidiChannelIfNeeded()

void juce::MPEChannelRemapper::remapMidiChannelIfNeeded ( MidiMessage message,
uint32  mpeSourceID 
)
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.

Parameters
messagethe message to be remapped
mpeSourceIDthe 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.

◆ reset()

void juce::MPEChannelRemapper::reset ( )
noexcept

Resets all the source & channel combinations.

Definition at line 213 of file juce_MPEUtils.cpp.

Member Data Documentation

◆ notMPE

const uint32 juce::MPEChannelRemapper::notMPE
static

Used to indicate that a particular source & channel combination is not currently using MPE.

Definition at line 111 of file juce_MPEUtils.h.


The documentation for this class was generated from the following files: