JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MPEZone Struct Reference

This struct represents an MPE zone. More...

#include <juce_MPEZoneLayout.h>

Collaboration diagram for juce::MPEZone:

Public Types

enum  Type {
  Type::lower,
  Type::upper
}
 

Public Member Functions

 MPEZone ()=default
 
 MPEZone (Type type, int memberChannels=0, int perNotePitchbend=48, int masterPitchbend=2)
 
int getFirstMemberChannel () const noexcept
 
int getLastMemberChannel () const noexcept
 
int getMasterChannel () const noexcept
 
bool isActive () const noexcept
 
bool isLowerZone () const noexcept
 
bool isUpperZone () const noexcept
 
bool isUsing (int channel) const noexcept
 
bool isUsingChannelAsMemberChannel (int channel) const noexcept
 
bool operator!= (const MPEZone &other) const
 
bool operator== (const MPEZone &other) const
 

Static Public Member Functions

static auto tie (const MPEZone &z)
 

Public Attributes

int masterPitchbendRange = 2
 
int numMemberChannels = 0
 
int perNotePitchbendRange = 48
 
Type zoneType = Type::lower
 

Static Public Attributes

static constexpr int lowerZoneMasterChannel = 1
 
static constexpr int upperZoneMasterChannel = 16
 

Detailed Description

This struct represents an MPE zone.

It can either be a lower or an upper zone, where:

  • A lower zone encompasses master channel 1 and an arbitrary number of ascending MIDI channels, increasing from channel 2.
  • An upper zone encompasses master channel 16 and an arbitrary number of descending MIDI channels, decreasing from channel 15.

It also defines a pitchbend range (in semitones) to be applied for per-note pitchbends and master pitchbends, respectively.

Member Enumeration Documentation

◆ Type

enum juce::MPEZone::Type
strong
Enumerator
lower 
upper 

Constructor & Destructor Documentation

◆ MPEZone() [1/2]

juce::MPEZone::MPEZone ( )
default

◆ MPEZone() [2/2]

juce::MPEZone::MPEZone ( Type  type,
int  memberChannels = 0,
int  perNotePitchbend = 48,
int  masterPitchbend = 2 
)
inline

Member Function Documentation

◆ getFirstMemberChannel()

int juce::MPEZone::getFirstMemberChannel ( ) const
inlinenoexcept

◆ getLastMemberChannel()

int juce::MPEZone::getLastMemberChannel ( ) const
inlinenoexcept

◆ getMasterChannel()

int juce::MPEZone::getMasterChannel ( ) const
inlinenoexcept

◆ isActive()

bool juce::MPEZone::isActive ( ) const
inlinenoexcept

◆ isLowerZone()

bool juce::MPEZone::isLowerZone ( ) const
inlinenoexcept

◆ isUpperZone()

bool juce::MPEZone::isUpperZone ( ) const
inlinenoexcept

References upper, and zoneType.

◆ isUsing()

bool juce::MPEZone::isUsing ( int  channel) const
inlinenoexcept

◆ isUsingChannelAsMemberChannel()

bool juce::MPEZone::isUsingChannelAsMemberChannel ( int  channel) const
inlinenoexcept

◆ operator!=()

bool juce::MPEZone::operator!= ( const MPEZone other) const
inline

References tie().

◆ operator==()

bool juce::MPEZone::operator== ( const MPEZone other) const
inline

References tie().

◆ tie()

static auto juce::MPEZone::tie ( const MPEZone z)
inlinestatic

References juce::gl::z.

Referenced by operator!=(), and operator==().

Member Data Documentation

◆ lowerZoneMasterChannel

constexpr int juce::MPEZone::lowerZoneMasterChannel = 1
staticconstexpr

◆ masterPitchbendRange

int juce::MPEZone::masterPitchbendRange = 2

◆ numMemberChannels

int juce::MPEZone::numMemberChannels = 0

Referenced by getLastMemberChannel(), and isActive().

◆ perNotePitchbendRange

int juce::MPEZone::perNotePitchbendRange = 48

◆ upperZoneMasterChannel

constexpr int juce::MPEZone::upperZoneMasterChannel = 16
static

◆ zoneType

Type juce::MPEZone::zoneType = Type::lower

Referenced by isLowerZone(), and isUpperZone().


The documentation for this struct was generated from the following file: