Defines an equivalence relationship over the notes, if they have the same chroma and belong to the same octave.
The first note
The second note
True if the note are equivalent, false otherwise
areNotesEquivalent("C3", "C3") // trueareNotesEquivalent("C3", "C4") // falseareNotesEquivalent("D#3", "Eb3") // trueareNotesEquivalent("B2", "Cb3") // true Copy
areNotesEquivalent("C3", "C3") // trueareNotesEquivalent("C3", "C4") // falseareNotesEquivalent("D#3", "Eb3") // trueareNotesEquivalent("B2", "Cb3") // true
Defines an equivalence relationship over the notes, if they have the same chroma and belong to the same octave.