JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MPEZoneLayout::Zone Struct Reference

This struct represents an MPE zone. More...

#include <juce_MPEZoneLayout.h>

Collaboration diagram for juce::MPEZoneLayout::Zone:

Public Member Functions

 Zone (const Zone &other) noexcept
 
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 isUsingChannelAsMemberChannel (int channel) const noexcept
 
bool operator!= (const Zone &other) const noexcept
 
bool operator== (const Zone &other) const noexcept
 

Public Attributes

int masterPitchbendRange
 
int numMemberChannels
 
int perNotePitchbendRange
 

Private Member Functions

 Zone (bool lower, int memberChans=0, int perNotePb=48, int masterPb=2) noexcept
 

Private Attributes

bool lowerZone
 

Friends

class MPEZoneLayout
 

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.

Constructor & Destructor Documentation

◆ Zone() [1/2]

juce::MPEZoneLayout::Zone::Zone ( const Zone other)
inlinenoexcept

◆ Zone() [2/2]

juce::MPEZoneLayout::Zone::Zone ( bool  lower,
int  memberChans = 0,
int  perNotePb = 48,
int  masterPb = 2 
)
inlineprivatenoexcept

Member Function Documentation

◆ getFirstMemberChannel()

int juce::MPEZoneLayout::Zone::getFirstMemberChannel ( ) const
inlinenoexcept

◆ getLastMemberChannel()

int juce::MPEZoneLayout::Zone::getLastMemberChannel ( ) const
inlinenoexcept

◆ getMasterChannel()

int juce::MPEZoneLayout::Zone::getMasterChannel ( ) const
inlinenoexcept

◆ isActive()

bool juce::MPEZoneLayout::Zone::isActive ( ) const
inlinenoexcept

◆ isLowerZone()

bool juce::MPEZoneLayout::Zone::isLowerZone ( ) const
inlinenoexcept

◆ isUpperZone()

bool juce::MPEZoneLayout::Zone::isUpperZone ( ) const
inlinenoexcept

◆ isUsingChannelAsMemberChannel()

bool juce::MPEZoneLayout::Zone::isUsingChannelAsMemberChannel ( int  channel) const
inlinenoexcept

◆ operator!=()

bool juce::MPEZoneLayout::Zone::operator!= ( const Zone other) const
inlinenoexcept

References juce::operator==().

◆ operator==()

bool juce::MPEZoneLayout::Zone::operator== ( const Zone other) const
inlinenoexcept

Friends And Related Function Documentation

◆ MPEZoneLayout

friend class MPEZoneLayout
friend

Member Data Documentation

◆ lowerZone

bool juce::MPEZoneLayout::Zone::lowerZone
private

◆ masterPitchbendRange

int juce::MPEZoneLayout::Zone::masterPitchbendRange

◆ numMemberChannels

int juce::MPEZoneLayout::Zone::numMemberChannels

◆ perNotePitchbendRange

int juce::MPEZoneLayout::Zone::perNotePitchbendRange

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