Browse Source

Added equality operators to MPEZoneLayout::Zone

tags/2021-05-28
ed 8 years ago
parent
commit
313e677904
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h

+ 7
- 0
modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h View File

@@ -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;


Loading…
Cancel
Save