Enum HarmonicFunction
Harmonic function of a chord
public enum HarmonicFunction
Fields
Tonic = 0Tonic function (rest/resolution): I, vi, iii.
Subdominant = 1Subdominant function (preparation): IV, ii.
Dominant = 2Dominant function (tension): V, vii°.
PreDominant = 3Pre-dominant function: chords that can substitute for the subdominant (IV, ii).
This library's own analysis never assigns it — it calls those chords Subdominant — so a report will not contain one unless you put it there. It is here for callers who draw the distinction; the display name for it reads "Pre-dominant (preparation)".
Chromatic = 4Chromatic function: borrowed or altered chords.
KeyAnalyzer never assigns it: a chord that does not belong to the key comes back as Invalid rather than as a valid chord with this function, so a caller must test IsValid rather than look for this value. It is here for callers building their own analysis, and for the display name, which reads "Chromatic (color/borrowed)".