- Introduced by
- Bryan Pardo
- Year
- 2002
- Type
- Harmonic function and progression analysis
- Family
- Tonal analysis
What does it do?
Harmonic analysis in music is the computational study of chord progressions and of the functional role each chord plays within a key.
The algorithmic approach to chordal analysis described on this page follows Pardo and Birmingham (2002), 'Algorithms for chordal analysis'. The task goes beyond naming chords: it interprets harmonic role and structure, and it is relevant to music theory education, musicological analysis and music generation research.
The intuition behind the method
Chords take on roles within a tonal framework. Some are stable (tonic, I), some are unstable (dominant, V), and some are transitional (subdominant, IV). Given a chord sequence and an estimate of the key, an algorithm can assign each chord a function by checking its relation to the key and to its neighbours. The method relies on conventions of tonal harmony: dominant chords commonly resolve to the tonic, subdominant chords often precede the dominant, and some progressions are much more frequent than others. These regularities allow the function of a chord to be predicted from its context.
History
The algorithmic approach to chordal analysis described on this page is associated with Pardo and Birmingham's 'Algorithms for chordal analysis' (2002), published in Computer Music Journal, 26(4). Chord estimation from audio is a separate, related task and is not part of the framework described here.
When to use it
Choose harmonic analysis when the question concerns the role of chords within a key, for example in analysing tonal music that follows functional harmony, such as common-practice classical repertoire or many popular styles built on tonal conventions. It is also suitable when harmonic function is needed as input for a generation or education tool. Do not use it for atonal or twelve-tone music, where tonal function is not defined by the framework, or for highly experimental material with ambiguous harmony. The method also presupposes reliable chord labels and a key estimate; if these are unavailable or unreliable, the analysis inherits their errors.
Limitations and considerations
- The key estimate determines every function label, so an error in key detection propagates through the whole analysis.
- Errors from upstream chord recognition carry into the function labels; a mislabelled chord produces a wrong function.
- Functional theory is specific to tonal systems; for modal or non-Western harmony, the labels may not carry the same meaning.
- Many passages admit more than one functional reading, so assigning a single label to each chord can overstate certainty.
- Training and evaluation depend on annotated harmonic analyses, and the availability of such annotations is a practical constraint.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Assigns each chord a functional role relative to the key, information that chord labels alone do not provide.
- Makes recurring patterns such as dominant-to-tonic resolution explicit, so the labelled progression can be inspected directly.
- Supplies structured harmonic input for generation models that need progressions with conventional tonal resolution.
- Applicable to repertoires whose harmony follows the tonal conventions the framework encodes.
Applications
- Music theory education: teaching harmonic progressions and function interactively.
- Automatic music composition and generation with coherent harmonic structure.
- Musicological analysis of compositional style, harmonic language, and historical trends.
- Music-aware music generation and style transfer based on harmonic patterns.
- Interactive music systems with harmonic understanding and prediction.
How it works
How it works
Obtain a chord sequence, for example from a chord recognition step, and an estimate of the key, for example from key detection. Represent the chords as a progression expressed relative to that key. Input: a chord sequence and a key. Output: one functional label (such as tonic, subdominant or dominant) for each chord, interpreted relative to the chosen key.
Function assignment can be built from functional-harmony rules that encode the conventions described above, or learned from annotated harmonic analyses where such annotations are available. Learned models are one option rather than a defining step of the method.
Given a chord progression and a key, assign each chord a functional label. Identify recurring patterns such as cadences and common functional progressions, and use them to interpret the harmonic structure.
Compare predicted function labels with ground-truth harmonic analyses on held-out test material. The main metric is function classification accuracy, the proportion of chords whose predicted function matches the annotation. Also report how well recurring progression patterns are recovered.
Common pitfalls
- Confusing harmonic function with chord type. A minor chord can be tonic, subdominant, or dominant depending on context. Function is relational, not intrinsic.
- Assuming functional harmony universally applies. This framework originated in Western classical music; other traditions have different systems.
- Ignoring voice-leading and inversions. Fuller harmonic analysis also considers voice-leading and chord voicing; flat chord representations omit this.
- Treating a single function label as certain. Function labels are relative to the chosen key, and many passages admit more than one reading. Report alternative readings where the analysis is ambiguous, and check reported accuracy against annotated material of a similar style.
Frequently asked questions
What is the difference between harmonic function and chord type?
Chord type describes the pitches (major, minor, dominant seventh). Harmonic function describes the chord's role in the key (tonic, dominant, etc.). The same chord type can have different functions depending on key and context.
What are common harmonic functions?
In major keys: I (tonic), IV (subdominant), V (dominant), vi (submediant). In minor keys: i, iv, v, VI. These are conventional mappings in tonal theory, not universal rules. Functions describe stability (tonic stable, dominant unstable) and typical progressions (IV → V → I); the stability description is a simplification of how tonal function works in practice.
Can harmonic analysis be applied to non-Western music?
Functional harmony as described here is a tonal framework developed mainly for Western music. Repertoires such as Indian raga, Arabic maqam and many African modal traditions organise pitch differently, so the same function labels may not apply. Analysing them requires models built on the conventions of those traditions.
How does harmonic analysis relate to music generation?
Understanding harmonic function enables generation of musically coherent progressions. Models can learn that V→I is common, IV→V is typical, etc., producing music that sounds harmonically natural.
Related methods
Sources
Pardo, B., & Birmingham, W. P. (2002). Algorithms for chordal analysis. Computer Music Journal, 26(4), 27-49.
Open DOI referencePauwels, G., Salamon, J., Gómez, E., & Ryckebusch, P. (2015). Automatic chord estimation from audio using a Deep Neural Network trained on music theory. In Proceedings of the International Society for Music Information Retrieval Conference.
Open publication referenceChen, T. P., Tan, A. H., & Zhu, S. (2012). Speech emotion recognition using robust temporal dynamics-based feature extraction methods. In Proceedings of the International Conference on Neural Information Processing.
Open publication reference