@libraz/libcantus - v1.1.0
    Preparing search index...

    Function intervalAboveRoot

    • A pitch's interval class above the chord root, in [0, 11].

      The shared reading of "where does this pitch sit in the chord", used by the safety evaluator and the voice analyser alike so they cannot disagree.

      Parameters

      • pitch: number

        MIDI pitch or bare pitch class.

      • chord: ChordData

        The chord providing the root reference.

      Returns number

      The interval class above the root.