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

    Function chordFromDegree

    • Build a chord rooted on a diatonic scale degree.

      The root pitch class is the degree's diatonic pitch class in key; the quality's interval template is attached unchanged. Degrees beyond the scale length wrap around.

      Parameters

      • degree: number

        0-based scale degree of the chord root.

      • ext: ChordQuality

        Chord quality to apply.

      • key: KeyScale

        Key context supplying the diatonic root.

      Returns ChordData

      The constructed chord.