Big Chord Data Extraction and Mining

Mathieu Barthet, Mark D. Plumbley, Alexander Kachkaev, Jason Dykes, Daniel Wolff, Tillman WeydeCity 2014

Abstract

Harmonic progression is a cornerstone of tonal music composition, essential for defining musical styles and traditions. While previous research has successfully used chord n-grams to discriminate between genres and composers, these studies were typically limited to small-scale symbolic datasets. This paper presents a large-scale approach to musicology, applying pattern mining techniques to over 200,000 chord progression sequences extracted from the "I Like Music" (ILM) commercial audio collection of 1,000,000 tracks. Using a parallel computing framework and the CM-SPADE algorithm, we identify frequent harmonic patterns across 37 genres spanning over a century. Our results reveal distinct "harmonic signatures" for different styles—most notably Jazz—and support the empirical testing of music theory at an unprecedented scale.

Introduction

Traditional musicology has long relied on the manual analysis of scores, a meticulous but slow process that limits research to relatively small datasets. The advent of symbolic music data (e.g., MIDI) allowed for some automation, but such data represents only a fraction of the vast world of recorded audio. This research aims to bridge the gap by applying data mining directly to raw audio files. By processing one million songs, we seek to discover if "chord idioms"—frequent, recognizable sequences—can be automatically identified and used to distinguish between musical genres, effectively creating a computational "grammar" of Western music.

Methodology

To handle the computational demands of a million-track dataset, we developed a high-throughput pipeline:

  • Parallel Computing: We utilized a "Single Program Multiple Data" (SPMD) approach, distributing audio feature extraction tasks across multiple CPU cores. This allowed us to process the entire collection in approximately six weeks, a task that would have taken over a year on a single-core machine.
  • Automated Chord Recognition: Chord progressions were extracted using the Chordino Vamp plugin. This tool utilizes Non-negative Least Squares (NNLS) chroma features to predict chords from audio signals.
  • Sequential Pattern Mining: We employed the CM-SPADE algorithm, which performs vertical mining of sequential patterns using co-occurrence information. This algorithm is optimized for "big data" contexts where horizontal mining would be too memory-intensive.
  • Key-Independent Modeling: To ensure patterns were comparable across different songs, transitions were modeled by changes in chord quality (e.g., major, minor, dominant 7th) and the interval between root notes (e.g., a perfect fourth).

Harmonic Patterns Across Genres

The analysis focused on a subset of over 200,000 tracks from six representative genres: Blues, Classical, Folk, Jazz, Reggae, and Rock’n’roll.

One of the most striking findings is the harmonic complexity of Jazz. As shown in Figure 1, Jazz exhibits an order of magnitude more frequent chord patterns than other genres across nearly all progression lengths. This complexity is driven by the frequent use of tetrads (7th chords) and sophisticated modulations.

Number of frequent chord progression patterns as a function of length for different genres. Note the logarithmic scale and the significant lead of Jazz.

Across all genres, the data reveals a "bell curve" of progression lengths. The number of frequent patterns peaks at lengths of 3 or 4 chords. As sequences grow longer, the number of common patterns drops sharply, suggesting that while music shares a common vocabulary of short "idioms," long-form sequences are highly diverse and specific to individual compositions.

Visualizing Harmonic Signatures

The mining process successfully isolated unique "signatures" for different styles. For instance, chains of dominant 7th chords are a hallmark of Blues, while the use of the relative minor is significantly more frequent in Classical music. Despite these differences, certain 4-chord patterns, such as those alternating in fifths and fourths (e.g., I-V-I-V), are prevalent across all studied genres, serving as a foundational grammar for Western tonal music.

To visualize these relationships, we generated directed graphs where the thickness of the lines represents the frequency of a transition. These "harmonic maps" provide a visual fingerprint for each genre.

Graph representations of the most frequent 4-chord progressions for Blues (a) and Classical (b). The thickness of the arrows indicates transition frequency.

Conclusion

This study demonstrates that large-scale audio mining can uncover deep structural patterns in music that were previously inaccessible. While automated transcription is not perfect—with accuracy ranging from 63% to 80% depending on chord complexity—the sheer volume of data allows for the extraction of statistically significant trends. Future research will aim to incorporate rhythmic and functional context, such as meter, tempo, and key detection, to move toward a more nuanced computational musicology.

Summary updated

BibTeX
@inproceedings{barthet2014big,
  author = {Mathieu Barthet and Mark D. Plumbley and Alexander Kachkaev and Jason Dykes and Daniel Wolff and Tillman Weyde},
  title = {{Big Chord Data Extraction and Mining}},
  booktitle = {City},
  year = {2014},
}
Figure