mozart_piano_sonatas
Harmony, cadence, and phrase annotations for Mozart's 18 piano sonatas
Science Score: 75.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 8 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
✓Institutional organization owner
Organization dcmlab has institutional domain (www.epfl.ch) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.4%) to scientific vocabulary
Repository
Harmony, cadence, and phrase annotations for Mozart's 18 piano sonatas
Basic Info
- Host: GitHub
- Owner: DCMLab
- License: other
- Default Branch: main
- Homepage: https://dcmlab.github.io/mozart_piano_sonatas/
- Size: 111 MB
Statistics
- Stars: 21
- Watchers: 7
- Forks: 6
- Open Issues: 1
- Releases: 4
Metadata Files
README.md
This is a README file for a data repository originating from the DCML corpus initiative and serves as welcome page for both
- the GitHub repo https://github.com/DCMLab/mozartpianosonatas and the corresponding
- documentation page https://dcmlab.github.io/mozartpianosonatas
For information on how to obtain and use the dataset, please refer to this documentation page.
When you use (parts of) this dataset in your work, please read and cite the accompanying data report:
Hentschel, J., Neuwirth, M., & Rohrmeier, M. (2021). The Annotated Mozart Sonatas: Score, harmony, and cadence. Transactions of the International Society for Music Information Retrieval, 4(1), 6780. https://doi.org/10.5334/tismir.63
This corpus forms part of the larger Distant Listening Corpus which constitutes a data infrastructure the data report of which has implications for the present corpus, too:
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
The Annotated Mozart Sonatas: Score, Harmony, and Cadence (A corpus of annotated scores)
Scores, chord labels and cadence labels for Mozart's 18 piano sonatas, following the Neue Mozart Ausgabe.
Getting the data
- download repository as a ZIP file
- download a Frictionless Datapackage that includes concatenations
of the TSV files in the four folders (
measures,notes,chords, andharmonies) and a JSON descriptor: - clone the repo:
git clone https://github.com/DCMLab/mozart_piano_sonatas.git
Data Formats
Each piece in this corpus is represented by five files with identical name prefixes, each in its own folder. For example, the first movement of the first sonata, K. 279 has the following files:
MS3/K279-1.mscx: Uncompressed MuseScore 3.6.2 file including the music and annotation labels.notes/K279-1.notes.tsv: A table of all note heads contained in the score and their relevant features (not each of them represents an onset, some are tied together)measures/K279-1.measures.tsv: A table with relevant information about the measures in the score.chords/K279-1.chords.tsv: A table containing layer-wise unique onset positions with the musical markup (such as dynamics, articulation, lyrics, figured bass, etc.).harmonies/K279-1.harmonies.tsv: A table of the included harmony labels (including cadences and phrases) with their positions in the score.
Each TSV file comes with its own JSON descriptor that describes the meanings and datatypes of the columns ("fields") it contains, follows the Frictionless specification, and can be used to validate and correctly load the described file.
Opening Scores
After navigating to your local copy, you can open the scores in the folder MS3 with the free and open source score
editor MuseScore. Please note that the scores have been edited, annotated and tested with
MuseScore 3.6.2.
MuseScore 4 has since been released which renders them correctly but cannot store them back in the same format.
Opening TSV files in a spreadsheet
Tab-separated value (TSV) files are like Comma-separated value (CSV) files and can be opened with most modern text
editors. However, for correctly displaying the columns, you might want to use a spreadsheet or an addon for your
favourite text editor. When you use a spreadsheet such as Excel, it might annoy you by interpreting fractions as
dates. This can be circumvented by using Data --> From Text/CSV or the free alternative
LibreOffice Calc. Other than that, TSV data can be loaded with
every modern programming language.
Loading TSV files in Python
Since the TSV files contain null values, lists, fractions, and numbers that are to be treated as strings, you may want
to use this code to load any TSV files related to this repository (provided you're doing it in Python). After a quick
pip install -U ms3 (requires Python 3.10 or later) you'll be able to load any TSV like this:
```python import ms3
labels = ms3.loadtsv("harmonies/K279-1.harmonies.tsv") notes = ms3.loadtsv("notes/K279-1.notes.tsv") ```
Version history
See the GitHub releases.
Questions, Suggestions, Corrections, Bug Reports
Please create an issue and/or feel free to fork and submit pull requests.
Cite as
Hentschel, J., Neuwirth, M., & Rohrmeier, M. (2021). The Annotated Mozart Sonatas: Score, harmony, and cadence. Transactions of the International Society for Music Information Retrieval, 4(1), 6780. https://doi.org/10.5334/tismir.63
License
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).

Overview
|file_name|measures|labels| annotators | reviewers | |---------|-------:|-----:|------------|-----------------------------------| |K279-1 | 100| 251|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K279-2 | 74| 156|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K279-3 | 158| 321|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K280-1 | 144| 225|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K280-2 | 60| 124|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K280-3 | 190| 199|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K281-1 | 109| 208|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K281-2 | 106| 153|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K281-3 | 162| 384|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K282-1 | 36| 104|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K282-2 | 72| 129|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K282-3 | 102| 176|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K283-1 | 120| 326|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K283-2 | 39| 169|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K283-3 | 277| 337|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K284-1 | 127| 330|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K284-2 | 92| 228|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K284-3 | 260| 755|Adrian Nagel|Johannes Hentschel, Markus Neuwirth| |K309-1 | 155| 307|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K309-2 | 79| 259|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K309-3 | 252| 406|Tal Soker |Johannes Hentschel, Markus Neuwirth| |K310-1 | 133| 292|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K310-2 | 86| 252|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K310-3 | 252| 428|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K311-1 | 112| 319|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K311-2 | 93| 241|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K311-3 | 269| 491|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K330-1 | 150| 293|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K330-2 | 64| 187|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K330-3 | 171| 365|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K331-1 | 134| 399|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K331-2 | 100| 160|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K331-3 | 127| 128|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K332-1 | 229| 316|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K332-2 | 40| 168|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K332-3 | 245| 449|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K333-1 | 165| 431|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K333-2 | 82| 217|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K333-3 | 224| 460|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K457-1 | 185| 308|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K457-2 | 57| 214|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K457-3 | 319| 328|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K533-1 | 239| 584|Adrian Nagel|Johannes Hentschel, Markus Neuwirth| |K533-2 | 122| 261|Adrian Nagel|Johannes Hentschel, Markus Neuwirth| |K533-3 | 187| 423|Adrian Nagel|Johannes Hentschel, Markus Neuwirth| |K545-1 | 73| 119|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K545-2 | 74| 146|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K545-3 | 73| 143|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K570-1 | 209| 245|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K570-2 | 55| 250|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K570-3 | 89| 281|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K576-1 | 160| 295|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K576-2 | 67| 151|Uli Kneisel |Johannes Hentschel, Markus Neuwirth| |K576-3 | 189| 381|Uli Kneisel |Johannes Hentschel, Markus Neuwirth|
Overview table automatically updated using ms3.
Owner
- Name: Digital and Cognitive Musicology Lab
- Login: DCMLab
- Kind: organization
- Location: Lausanne, CH
- Website: https://www.epfl.ch/labs/dcml/
- Repositories: 26
- Profile: https://github.com/DCMLab
The Digital and Cognitive Musicology Lab at École Polytechnique Fédérale de Lausanne (EPFL)
Citation (CITATION.cff)
cff-version: 1.2.0
message: "Please cite this dataset using the metadata from 'preferred-citation'."
title: "The Annotated Mozart Sonatas: Score, Harmony, and Cadence"
type: dataset
abstract: >-
Scores, chord labels and cadence labels for Mozart's 18 piano sonatas,
following the Neue Mozart Ausgabe.
This dataset is accompanied by the data report Hentschel, J., Neuwirth, M. and
Rohrmeier, M., 2021. The Annotated Mozart Sonatas: Score, Harmony, and
Cadence. Transactions of the International Society for Music Information
Retrieval, 4(1), pp.67–80. DOI: http://doi.org/10.5334/tismir.63doi: 10.5281/ZENODO.7473560c
url: https://zenodo.org/doi/10.5281/zenodo.7424962
repository: https://github.com/DCMLab/mozart_piano_sonatas
identifiers:
- type: doi
value: 10.5281/ZENODO.7424962
- type: url
value: https://zenodo.org/doi/10.5281/zenodo.7424962
authors:
- given-names: Johannes
family-names: Hentschel
email: johannes.hentschel@bruckneruni.at
affiliation: "Anton Bruckner University Linz"
orcid: "https://orcid.org/0000-0002-1986-9545"
- given-names: Markus
family-names: Neuwirth
email: markus.neuwirth@bruckneruni.at
affiliation: "Anton Bruckner University Linz"
orcid: "https://orcid.org/0000-0003-1990-052X"
- given-names: Martin
family-names: Rohrmeier
email: martin.rohrmeier@epfl.ch
affiliation: "École Polytechnique Fédérale de Lausanne"
orcid: "https://orcid.org/0000-0002-4323-7257"
version: v2.3
date-released: 2025-04-27
keywords:
- "expert-annotated dataset"
- "tonal harmony"
- "music research"
- "music theory"
- "music analysis"
- "music history"
- "corpus studies"
- "corpora"
- "symbolic dataset"
- "scores"
- "annotated dataset"
- "harmony"
- "key annotations"
- "chord annotations"
- "phrase annotations"
- "cadence annotations"
- "classical style"
- "piano music"
license: "CC-BY-NC-4.0"
preferred-citation:
authors:
- given-names: Johannes
family-names: Hentschel
email: johannes.hentschel@bruckneruni.at
affiliation: "Anton Bruckner University Linz"
orcid: "https://orcid.org/0000-0002-1986-9545"
- given-names: Markus
family-names: Neuwirth
email: markus.neuwirth@bruckneruni.at
affiliation: "Anton Bruckner University Linz"
orcid: "https://orcid.org/0000-0003-1990-052X"
- given-names: Martin
family-names: Rohrmeier
email: martin.rohrmeier@epfl.ch
affiliation: "École Polytechnique Fédérale de Lausanne"
orcid: "https://orcid.org/0000-0002-4323-7257"
title: An Annotated Corpus of Tonal Piano Music from the Long 19th Century
doi: 10.5334/tismir.63
url: http://dx.doi.org/10.5334/tismir.63
identifiers:
- type: doi
value: 10.5334/tismir.63
- type: url
value: http://dx.doi.org/10.5334/tismir.63
- type: other
value: urn:issn:2514-3298
type: article
journal: Transactions of the International Society for Music Information Retrieval
issn: 2514-3298
publisher:
name: Ubiquity Press, Ltd.
volume: 4
issue: 1
year: 2021
month: 5
start: 67
end: 80
abstract: >-
<jats:p>This article describes a new expert-labelled dataset featuring
harmonic, phrase, and cadence analyses of all piano sonatas by W.A. Mozart.
The dataset draws on the DCML standard for harmonic annotation and is being
published adopting the FAIR principles of Open Science. The annotations
have been verified using a data triangulation procedure which is presented
as an alternative approach to handling annotator subjectivity. This
procedure is suited for ensuring consistency, within the dataset and
beyond, despite the high level of analytical detail afforded by the
employed harmonic annotation syntax. The harmony labels also encode
contextual information and are therefore suited for investigating music
theoretical questions related to tonal harmony and the harmonic makeup of
cadences in the classical style. Apart from providing basic statistical
analyses characterizing the dataset, its music theoretical potential is
illustrated by two preliminary experiments, one on the terminal harmonies
of cadences and the other on the relation between performance durations and
harmonic density. Furthermore, particular features can be selected to
produce more coarse-grained training data, for example for chord detection
algorithms that require less analytical detail. Facilitating the dataset’s
reusability, it comes with a Python script that allows researchers to
easily access various representations of the data tailored to their
particular needs.</jats:p>
GitHub Events
Total
- Release event: 2
- Watch event: 1
- Delete event: 2
- Push event: 12
- Pull request event: 4
- Create event: 4
Last Year
- Release event: 2
- Watch event: 1
- Delete event: 2
- Push event: 12
- Pull request event: 4
- Create event: 4
Dependencies
- DCMLab/dcml_corpus_workflow v2.5.0 composite
- actions/checkout v3 composite
- DCMLab/dcml_corpus_workflow v2.5.0 composite
- actions/checkout v3 composite