41 enum class Type { lower, upper };
45 MPEZone (
Type type,
int memberChannels = 0,
int perNotePitchbend = 48,
int masterPitchbend = 2)
75 return std::tie (
z.zoneType,
77 z.perNotePitchbendRange,
78 z.masterPitchbendRange);
81 bool operator== (
const MPEZone& other)
const
83 return tie (*
this) ==
tie (other);
86 bool operator!= (
const MPEZone& other)
const
88 return tie (*
this) !=
tie (other);
137 bool operator!= (
const MPEZoneLayout& other)
const {
return ! operator== (other); }
147 void setLowerZone (
int numMemberChannels = 0,
148 int perNotePitchbendRange = 48,
149 int masterPitchbendRange = 2)
noexcept;
152 void setUpperZone (
int numMemberChannels = 0,
153 int perNotePitchbendRange = 48,
154 int masterPitchbendRange = 2)
noexcept;
159 void clearAllZones();
189 void processNextMidiBuffer (
const MidiBuffer& buffer);
228 void setZone (
bool,
int,
int,
int)
noexcept;
#define noexcept
Definition DistrhoDefines.h:72
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
static void message(int level, const char *fmt,...)
Definition adplugdb.cpp:120
Definition juce_ListenerList.h:70
Definition juce_MPEZoneLayout.h:196
virtual void zoneLayoutChanged(const MPEZoneLayout &layout)=0
virtual ~Listener()=default
void updateMasterPitchbend(MPEZone &, int)
Definition juce_MPEZoneLayout.cpp:141
ListenerList< Listener > listeners
Definition juce_MPEZoneLayout.h:225
MPEZone getUpperZone() const noexcept
Definition juce_MPEZoneLayout.h:144
void processRpnMessage(MidiRPNMessage)
Definition juce_MPEZoneLayout.cpp:122
void updatePerNotePitchbendRange(MPEZone &, int)
Definition juce_MPEZoneLayout.cpp:151
MPEZone upperZone
Definition juce_MPEZoneLayout.h:222
void sendLayoutChangeMessage()
Definition juce_MPEZoneLayout.cpp:54
MidiRPNDetector rpnDetector
Definition juce_MPEZoneLayout.h:224
void checkAndLimitZoneParameters(int, int, int &) noexcept
Definition juce_MPEZoneLayout.cpp:198
MPEZone Zone
Definition juce_MPEZoneLayout.h:216
void processPitchbendRangeRpnMessage(MidiRPNMessage)
Definition juce_MPEZoneLayout.cpp:161
void removeListener(Listener *const listenerToRemove) noexcept
Definition juce_MPEZoneLayout.cpp:192
void processZoneLayoutRpnMessage(MidiRPNMessage)
Definition juce_MPEZoneLayout.cpp:130
void addListener(Listener *const listenerToAdd) noexcept
Definition juce_MPEZoneLayout.cpp:187
bool isActive() const
Definition juce_MPEZoneLayout.h:162
MPEZone lowerZone
Definition juce_MPEZoneLayout.h:221
void setZone(bool, int, int, int) noexcept
Definition juce_MPEZoneLayout.cpp:60
MPEZone getLowerZone() const noexcept
Definition juce_MPEZoneLayout.h:141
Definition juce_MidiBuffer.h:145
Definition juce_MidiMessage.h:35
Definition juce_MidiRPN.h:68
unsigned z
Definition inflate.c:1589
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
Definition juce_MPEZoneLayout.h:40
int masterPitchbendRange
Definition juce_MPEZoneLayout.h:99
bool isActive() const noexcept
Definition juce_MPEZoneLayout.h:55
static constexpr int upperZoneMasterChannel
Definition juce_MPEZoneLayout.h:93
static constexpr int lowerZoneMasterChannel
Definition juce_MPEZoneLayout.h:92
bool isUsing(int channel) const noexcept
Definition juce_MPEZoneLayout.h:68
Type zoneType
Definition juce_MPEZoneLayout.h:95
int perNotePitchbendRange
Definition juce_MPEZoneLayout.h:98
int getMasterChannel() const noexcept
Definition juce_MPEZoneLayout.h:57
int getLastMemberChannel() const noexcept
Definition juce_MPEZoneLayout.h:59
bool isLowerZone() const noexcept
Definition juce_MPEZoneLayout.h:52
MPEZone(Type type, int memberChannels=0, int perNotePitchbend=48, int masterPitchbend=2)
Definition juce_MPEZoneLayout.h:45
static auto tie(const MPEZone &z)
Definition juce_MPEZoneLayout.h:73
int getFirstMemberChannel() const noexcept
Definition juce_MPEZoneLayout.h:58
bool isUpperZone() const noexcept
Definition juce_MPEZoneLayout.h:53
bool isUsingChannelAsMemberChannel(int channel) const noexcept
Definition juce_MPEZoneLayout.h:62
Type
Definition juce_MPEZoneLayout.h:41
@ upper
Definition juce_MPEZoneLayout.h:41
@ lower
Definition juce_MPEZoneLayout.h:41
int numMemberChannels
Definition juce_MPEZoneLayout.h:97
Definition juce_MidiRPN.h:33
#define const
Definition zconf.h:137