bool operator==(const Chord &c1, const Chord &c2) { if (c1.getChordText() != c2.getChordText()) return false; if (c1.getBeat() != c2.getBeat()) return false; return true; }