@libraz/libcantus - v0.9.3
    Preparing search index...

    Function scaleMatchesChord

    • Test whether every chord pitch class is contained in a scale.

      Parameters

      • chordPcs: number[]

        The chord's pitch classes (0..11).

      • scaleMask: number

        The scale's 12-bit mode mask.

      • scaleRootPc: number

        The pitch class the mask is rooted on.

      Returns boolean

      True if the scale is a superset of the chord.