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

    Function augmentedSixthChord

    • Build an augmented-sixth chord in a key.

      The chord always carries an explicit bassPc on the lowered submediant, which is what makes it an augmented sixth rather than the dominant seventh or the altered supertonic seventh it shares pitch classes with, and an explicit interval template naming exactly the tones that sound.

      It also carries its spelling: the tones as toneSpellings, and the root and bass as the usual hints. Those are what let the ordinary chord speller and the symbol formatter name the chord — Ab C Eb F# and Ab7 for the German sixth of C major — since a stack of thirds over that root would put a Gb where the augmented sixth belongs. The spelling is the one the key is written on, so a flat-side key takes the double flats it genuinely needs.

      The lowered submediant is taken as eight semitones above the tonic in every mode, since the chord is a chromatic alteration rather than a degree of the prevailing scale.

      Parameters

      Returns ChordData

      The chord, with its bass on the lowered submediant.

      If kind is not one of the three, or the key's root is not finite.

      spellAugmentedSixth to spell the family from a tonic without building a chord at all.

      import { augmentedSixthChord, majorKey } from '@libraz/libcantus';
      augmentedSixthChord('german', majorKey(0));
      // Ab C Eb F# in C: { rootPc: 8, quality: 'dom7', intervals: [0, 4, 7, 10], bassPc: 8, ... }