Music Psychology

Harmonic Grammar & Musical Syntax

How chord sequences follow grammatical rules — and why breaking them creates musical surprise.

A Grammar for Harmony

Just as natural language follows grammatical rules, tonal music follows a harmonic syntax. Rohrmeier (2011) proposed a generative grammar for tonal harmony that models chord progressions as hierarchical structures, not just linear sequences. A V–I cadence isn't simply "dominant followed by tonic" — it's a nested dependency where the dominant creates an expectation that the tonic resolves. Lerdahl & Jackendoff (1983) formalized this in their Generative Theory of Tonal Music (GTTM), showing that listeners parse music into hierarchical trees of tension and resolution, much like parsing a sentence into subject, verb, and object.

Jazz Chord Grammars

Steedman (1984) extended generative grammar to jazz, demonstrating that the ii–V–I pattern and its substitutions (tritone subs, backdoor dominants) follow recursive rewrite rules. A complex jazz progression like |Dm7 G7 | Cmaj7| can be generated from a single rule: "approach the target chord with its ii–V." This recursive structure explains why jazz musicians can navigate unfamiliar chord changes in real time — they're applying grammatical rules, not memorizing every possible sequence. MusicMind's harmonic analysis uses these grammatical models to score harmonic sophistication and predict chord resolutions.

What Chord Corpora Reveal

Burgoyne et al. (2011) created the McGill Billboard corpus — expert annotations of 740 pop songs — revealing that just 4 chord functions (I, IV, V, vi) account for over 80% of all harmony in popular music. White & Quinn (2018) extended this work to show that harmonic function depends heavily on context: the same chord (e.g., a C major triad) plays different roles depending on what precedes and follows it. These corpus statistics power MusicMind's chord transition probability model, enabling it to quantify how surprising each harmonic move is.
Music isn't a random sequence of chords — it's a language with grammar. MusicMind reads the syntax, not just the vocabulary.

Try this on your own track

Upload any song and see the full analysis in seconds.

Sources & References

  1. Rohrmeier, M. (2011). Towards a generative syntax of tonal harmony. Journal of Mathematics and Music, 5(1), 35–53.
  2. Lerdahl, F., & Jackendoff, R. (1983). A Generative Theory of Tonal Music. MIT Press.
  3. Steedman, M. J. (1984). A generative grammar for jazz chord sequences. Music Perception, 2(1), 52–77.
  4. Burgoyne, J. A., Wild, J., & Fujinaga, I. (2011). An expert ground truth set for audio chord recognition and music analysis. Proceedings of ISMIR, 633–638.
  5. White, C. W., & Quinn, I. (2018). Chord context and harmonic function in tonal music. Music Theory Spectrum, 40(2), 314–337.

Frequently Asked Questions

What is harmonic grammar?+
Harmonic grammar models chord progressions as hierarchical structures with grammatical rules, similar to how natural language syntax works. It explains why some chord sequences sound "correct" and others sound surprising or wrong.
How does MusicMind use harmonic grammar?+
MusicMind applies generative grammar models to score harmonic sophistication, detect cadence types, measure chord-to-chord surprise, and classify jazz substitutions — going beyond simple chord identification to understand harmonic logic.
Does this work for all genres?+
The grammatical framework adapts to different harmonic styles. Pop music uses a simpler grammar (mostly I, IV, V, vi), jazz uses extended recursive rules, and classical music uses the full generative hierarchy described by Lerdahl & Jackendoff.
Analyze a track — free