Heaps' Law and Vocabulary Richness in the History of Classical Music Harmony

Marc Serra-Peralta, Joan Serrà, Álvaro Corral
4/9/2021
cs.SDeess.ASphysics.soc-ph

Official code: MarcSerraPeralta/chromagramer (2 stars, Python, MIT, last commit 2021-10-14).

Abstract

Music is a fundamental human construct, and harmony provides the building blocks of musical language. Using the Kunstderfuge corpus of classical music, we analyze the historical evolution of the richness of harmonic vocabulary of 76 classical composers, covering almost 6 centuries.

Show full abstract

Such corpus comprises about 9500 pieces, resulting in more than 5 million tokens of music codewords. The fulfilment of Heaps' law for the relation between the size of the harmonic vocabulary of a composer (in codeword types) and the total length of his works (in codeword tokens), with an exponent around 0.35, allows us to define a relative measure of vocabulary richness that has a transparent interpretation. When coupled with the considered corpus, this measure allows us to quantify harmony richness across centuries, unveiling a clear increasing linear trend. In this way, we are able to rank the composers in terms of richness of vocabulary, in the same way as for other related metrics, such as entropy. We find that the latter is particularly highly correlated with our measure of richness. Our approach is not specific for music and can be applied to other systems built by tokens of different types, as for instance natural language.

View on arXivView PDF

Code Implementations(1)

MIT

Big Data Analysis of Music using MIDI files

20PythonFeb 28, 20215 years agoMIT

Similar Papers

Cite this paper

@article{serraperalta2021heaps,
  title  = {Heaps' Law and Vocabulary Richness in the History of Classical Music Harmony},
  author = {Marc Serra-Peralta and Joan Serrà and Álvaro Corral},
  year   = {2021},
  eprint = {2104.04143},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.04143}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.04143.svg)](https://codeofpaper.com/paper/2104.04143)

Discussion