This struct represents an MPE zone. More...
#include <juce_MPEZoneLayout.h>
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 |
Static Public Member Functions | |
static auto | tie (const MPEZone &z) |
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 |
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.
|
strong |
|
default |
MPEZone::MPEZone | ( | Type | type, |
int | memberChannels = 0, | ||
int | perNotePitchbend = 48, | ||
int | masterPitchbend = 2 ) |
|
noexcept |
References lower, and zoneType.
Referenced by getFirstMemberChannel(), getLastMemberChannel(), getMasterChannel(), and isUsingChannelAsMemberChannel().
|
noexcept |
References numMemberChannels.
|
noexcept |
References isLowerZone(), lowerZoneMasterChannel, and upperZoneMasterChannel.
Referenced by isUsing().
|
noexcept |
References isLowerZone(), lowerZoneMasterChannel, and upperZoneMasterChannel.
|
noexcept |
References isLowerZone(), lowerZoneMasterChannel, numMemberChannels, and upperZoneMasterChannel.
Referenced by isUsingChannelAsMemberChannel().
|
noexcept |
References getLastMemberChannel(), isLowerZone(), lowerZoneMasterChannel, and upperZoneMasterChannel.
Referenced by isUsing().
|
noexcept |
References getMasterChannel(), and isUsingChannelAsMemberChannel().
|
static |
References masterPitchbendRange, numMemberChannels, perNotePitchbendRange, and zoneType.
Referenced by operator!=(), and operator==().
|
staticconstexpr |
Referenced by getFirstMemberChannel(), getLastMemberChannel(), getMasterChannel(), and isUsingChannelAsMemberChannel().
|
static |
Referenced by getFirstMemberChannel(), getLastMemberChannel(), getMasterChannel(), and isUsingChannelAsMemberChannel().
Type MPEZone::zoneType = Type::lower |
Referenced by isLowerZone(), isUpperZone(), and tie().
int MPEZone::numMemberChannels = 0 |
Referenced by getLastMemberChannel(), isActive(), and tie().
int MPEZone::perNotePitchbendRange = 48 |
Referenced by tie().
int MPEZone::masterPitchbendRange = 2 |
Referenced by tie().