Documentation
    Preparing search index...

    Function areNotesEquivalent

    • Defines an equivalence relationship over the notes, if they have the same chroma and belong to the same octave.

      Parameters

      • a: string

        The first note

      • b: string

        The second note

      Returns boolean

      True if the note are equivalent, false otherwise

      areNotesEquivalent("C3", "C3") // true
      areNotesEquivalent("C3", "C4") // false
      areNotesEquivalent("D#3", "Eb3") // true
      areNotesEquivalent("B2", "Cb3") // true