API / MusicTheory
HarmonicFunction enum
How a chord relates to the key it is analysed in.
Values
| Name | Value | Meaning |
|---|---|---|
Diatonic | 0 | Built on a scale degree with the key's own quality (minor keys include the harmonic-minor V and vii°). |
Borrowed | 1 | Taken from the parallel mode, e.g. iv, bVI, bVII in a major key. |
SecondaryDominant | 2 | A major or dominant-7th chord a fifth above a diatonic degree (V/V, V7/vi). |
Chromatic | 3 | Anything else; the numeral uses the nearest degree. |
Neapolitan | 4 | A major chord on the lowered second degree (N, N6), the Neapolitan. |
AugmentedSixth | 5 | A German (dominant 7th) or French (dominant 7th flat 5) augmented sixth on the lowered sixth degree. |