JUCE API reference
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
juce::MPEZone Struct Reference

This struct represents an MPE zone. More...

Public Types

enum class  Type { lower , upper }
 

Public Member Functions

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

Public Attributes

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

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:

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

Member Enumeration Documentation

◆ Type

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

◆ isLowerZone()

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

◆ isUpperZone()

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

References upper, and zoneType.

◆ isActive()

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

References numMemberChannels.

Referenced by isUsing().

◆ getMasterChannel()

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

◆ getFirstMemberChannel()

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

◆ getLastMemberChannel()

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

◆ isUsingChannelAsMemberChannel()

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

◆ isUsing()

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

◆ operator==()

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

◆ operator!=()

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

Member Data Documentation

◆ lowerZoneMasterChannel

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

◆ upperZoneMasterChannel

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

◆ zoneType

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

Referenced by isLowerZone(), and isUpperZone().

◆ numMemberChannels

int juce::MPEZone::numMemberChannels = 0

Referenced by getLastMemberChannel(), and isActive().

◆ perNotePitchbendRange

int juce::MPEZone::perNotePitchbendRange = 48

◆ masterPitchbendRange

int juce::MPEZone::masterPitchbendRange = 2

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