Learning Harmony with DCML ms3: A Practical Study Based on the Annotated Beethoven Piano Sonatas Corpus
DOI:
https://doi.org/10.54097/92w7fj67Keywords:
Harmony Learning, Symbolic Music Datasets, DCML Corpus, ms3 Toolkit, MIR (Music Information Retrieval), Music Theory TeachingAbstract
As artificial intelligence has developed rapidly, so too have the amounts of public music data. Among them, symbolic-coded musical scores with expert hand annotations are gradually attracting the attention of music learners of music theory. Harmony is a basic part of music theory that is usually taught by providing only a limited number of examples in textbooks and lectures. The previous way has had relatively few learning materials and cannot meet all the different needs of the students. A good set of hand-annotated data can be obtained by focusing the search on a particular theoretical idea to help students quickly find many relevant musical examples in established works. Although such expertly annotated score datasets have become easier to obtain, there have been some technical bottlenecks in data processing and programming in the past that have prevented many music students from using them in their theoretical studies. This paper presents the "Annotated Corpus of Tonal Piano Music from the Long 19th Century", which was published by the Digital and Cognitive Musicology Lab (DCML). It first introduces the current situation of primary manually annotated symbolic score collections and then examines their function and difficulties in application for music theory teaching. Next, we will present the foundation of this study: the annotated corpus of Beethoven's 32 piano sonatas, and describe how it has been organised, annotated and structured. Next, we will introduce the main functions and installation steps of ms3, DCML's additional Python module. As a practical case, functional harmony extraction is used to present the whole process of focused extraction of musical data through coding demonstrations in this paper. The goal of this paper is to offer a long-term method for music scholars to obtain harmonic data, reduce the technical difficulties in using MIR databases, and promote the application of excellent annotated resources in music theory education.
Downloads
References
[1] De Clercq, T., & Temperley, D. (2011). A corpus analysis of rock harmony. Popular Music, 30(1), 47–70. https://doi.org/10.1017/S026114301000067X. DOI: https://doi.org/10.1017/S026114301000067X
[2] Harte, C., & Sandler, M. Reference annotations: The Beatles. Isophonics. Retrieved August 10, 2026, from https://isophonics.net/content/reference-annotations-beatles.html.
[3] Hentschel, J., Rammos, Y., Moss, F., Neuwirth, M., & Rohrmeier, M. (2024). An annotated corpus of tonal piano music from the long 19th century. Empirical Musicology Review, 18, 84–95. https://doi.org/10.18061/emr.v18i1.8903. DOI: https://doi.org/10.18061/emr.v18i1.8903
[4] Hentschel, J., Rammos, Y., Neuwirth, M., & Rohrmeier, M. (2025). A corpus and a modular infrastructure for the empirical study of (an)notated music. Scientific Data, 12(1), 685. https://doi.org/10.1038/s41597-025-04976-z. DOI: https://doi.org/10.1038/s41597-025-04976-z
[5] DCMLab. ms3: Python toolkit for handling MuseScore scores and DCML annotations. Python Package Index. https://pypi.org/project/ms3/.
[6] DCMLab. Beethoven piano sonatas annotated corpus. GitHub. https://github.com/DCMLab/beethoven_piano_sonatas.
[7] DCMLab. ms3 manual. https://johentsch.github.io/ms3/build/html/manual/index.html.
[8] DCMLab. DCML score and annotation standard reference documentation. https://dcmlab.github.io/standards/build/html/index.html.
[9] DCMLab. DCML score and annotation standard reference documentation. Section Measure numbers. https://dcmlab.github.io/standards/build/html/index.html.
[10] DCMLab. DCML score and annotation standard reference documentation. Section Chord label syntax. https://dcmlab.github.io/standards/build/html/tutorial/first_phrase.html.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Frontiers in Computing and Intelligent Systems

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

