From 313e6779046d1192ade1042591a26637a5ab8aea Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 9 Feb 2018 15:43:50 +0000 Subject: [PATCH] Added equality operators to MPEZoneLayout::Zone --- modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h b/modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h index 047d672751..c3da69cb7b 100644 --- a/modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h +++ b/modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h @@ -102,6 +102,13 @@ public: : (channel < 16 && channel >= 16 - numMemberChannels); } + bool operator== (const Zone& other) const noexcept { return lowerZone == other.lowerZone + && numMemberChannels == other.numMemberChannels + && perNotePitchbendRange == other.perNotePitchbendRange + && masterPitchbendRange == other.masterPitchbendRange; } + + bool operator!= (const Zone& other) const noexcept { return ! operator== (other); } + int numMemberChannels; int perNotePitchbendRange; int masterPitchbendRange;