Skip to content

Commit 2d0530a

Browse files
author
Johannes Hentschel
committed
updates README based on template
1 parent b2b93e7 commit 2d0530a

File tree

2 files changed

+74
-7
lines changed

2 files changed

+74
-7
lines changed

.zenodo.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"license": "CC-BY-NC-SA-4.0",
3-
"description": "<p>This corpus of annotated <a href=\"https://musescore.org\">MuseScore</a> files has been created within the <a href=\"https://github.com/DCMLab/dcml_corpora\">DCML corpus initiative</a> and employs the <a href=\"https://github.com/DCMLab/standards\">DCML harmony annotation standard</a>. It is one out of nine similar corpora that have been grouped together to <a href=\"https://doi.org/10.5281/zenodo.7473560\">An Annotated Corpus of Tonal Piano Music from the Long 19th Century</a> which comes with a data report that is currently under review.</p>\n\n<p>The dataset lives on GitHub (link under &quot;Related identifiers&quot;) and is stored on Zenodo purely for conservation and automatic DOI generation for new GitHub releases. For technical reasons, we include only brief, generic instructions on how to use the data. For more detailed documentation, please refer to the dataset&#39;s GitHub page.</p>\n\n<p><strong>What is included</strong></p>\n\n<p>The dataset includes annotated MusicScores <strong>.mscx</strong> files that have been created with <a href=\"https://github.com/musescore/MuseScore/releases/tag/v3.6.2\">MuseScore 3.6.2</a> and can be opened with any MuseScore 3, or later version. Apart from that, the score information (measures, notes, harmony labels) have been extracted in the form of TSV files which can be found respectively in the folders <code>measures</code>, <code>notes</code>, and <code>harmonies</code>. They have been extracted with the Python library <a href=\"https://pypi.org/project/ms3/\">ms3</a> and its documentation has a <a href=\"https://ms3.readthedocs.io/columns\">column glossary for looking up the meaning of a column</a>.</p>\n\n<p><strong>Getting the data</strong></p>\n\n<p>You can download the dataset as a ZIP file from Zenodo or GitHub. Please note that these automatically generated ZIP files do not include submodules, which would appear as empty folders. If you need ZIP files, you will need to find the submodule repositories (e.g. via GitHub) and download them individually.</p>\n\n<p>Apart from that, there is the possibility to git-clone the GitHub repository to your disk. This has the advantage that it allows to version-control any changes you want to make to the dataset and to ask for your changes to be included (&quot;merged&quot;) in a future version.</p>",
43
"contributors": [
54
{
65
"orcid": "0000-0002-6329-7492",
@@ -23,7 +22,7 @@
2322
"name": "Victor Zheng"
2423
}
2524
],
26-
"title": "Carl Philipp Emanuel Bach – Works for Keyboard",
25+
"title": "Carl Philipp Emanuel Bach – Works for Keyboard (A corpus of annotated scores)",
2726
"keywords": [
2827
"music research",
2928
"music theory",
@@ -89,6 +88,12 @@
8988
"scheme": "url",
9089
"identifier": "https://dcmlab.github.io/cpe_bach_keyboard/",
9190
"relation": "isDocumentedBy"
91+
},
92+
{
93+
"scheme": "doi",
94+
"identifier": "10.5281/zenodo.13844105",
95+
"relation": "isPartOf",
96+
"resource_type":"dataset"
9297
}
9398
]
9499
}

README.md

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![Version](https://img.shields.io/github/v/release/DCMLab/cpe_bach_keyboard?display_name=tag)
2-
[![DOI](https://zenodo.org/badge/{{ zenodo_badge_id }}.svg)](https://zenodo.org/badge/latestdoi/{{ zenodo_badge_id }})
2+
[![DOI](https://zenodo.org/badge/{{ zenodo_badge_id }}.svg)](https://doi.org/{{ concept_doi }})
33
![GitHub repo size](https://img.shields.io/github/repo-size/DCMLab/cpe_bach_keyboard)
44
![License](https://img.shields.io/badge/license-CC%20BY--NC--SA%204.0-9cf)
55

@@ -12,7 +12,8 @@ and serves as welcome page for both
1212

1313
For information on how to obtain and use the dataset, please refer to [this documentation page](https://dcmlab.github.io/cpe_bach_keyboard/introduction).
1414

15-
# Carl Philipp Emanuel Bach – Works for Keyboard
15+
# Carl Philipp Emanuel Bach – Works for Keyboard (A corpus of annotated scores)
16+
1617

1718
This corpus of annotated [MuseScore](https://musescore.org) files has been created within
1819
the [DCML corpus initiative](https://github.com/DCMLab/dcml_corpora) and employs
@@ -38,7 +39,61 @@ miniatures like Wq. 113/3 and extended unmeasured soliloquies like Wq. 117/13.
3839
These scores were typeset especially for this project by Anna Yuferova following the critical editions from the
3940
Packard Institute, with the exception of Wq. 117/12 and 55/4, which were downloaded from the MuseScore catalogue.
4041

41-
## Cite as
42+
43+
## Getting the data
44+
45+
* download repository as a [ZIP file](https://github.com/DCMLab/cpe_bach_keyboard/archive/main.zip)
46+
* download a [Frictionless Datapackage](https://specs.frictionlessdata.io/data-package/) that includes concatenations
47+
of the TSV files in the four folders (`measures`, `notes`, `chords`, and `harmonies`) and a JSON descriptor:
48+
* [cpe_bach_keyboard.zip](https://github.com/DCMLab/cpe_bach_keyboard/releases/latest/download/cpe_bach_keyboard.zip)
49+
* [cpe_bach_keyboard.datapackage.json](https://github.com/DCMLab/cpe_bach_keyboard/releases/latest/download/cpe_bach_keyboard.datapackage.json)
50+
* clone the repo: `git clone https://github.com/DCMLab/cpe_bach_keyboard.git`
51+
52+
53+
## Data Formats
54+
55+
Each piece in this corpus is represented by five files with identical name prefixes, each in its own folder.
56+
For example, the first movement of the *Sonata in F Major*, Wq.50/1, has the following files:
57+
58+
* `MS3/wq50n01a.mscx`: Uncompressed MuseScore 3.6.2 file including the music and annotation labels.
59+
* `notes/wq50n01a.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)
60+
* `measures/wq50n01a.measures.tsv`: A table with relevant information about the measures in the score.
61+
* `chords/wq50n01a.chords.tsv`: A table containing layer-wise unique onset positions with the musical markup (such as dynamics, articulation, lyrics, figured bass, etc.).
62+
* `harmonies/wq50n01a.harmonies.tsv`: A table of the included harmony labels (including cadences and phrases) with their positions in the score.
63+
64+
Each TSV file comes with its own JSON descriptor that describes the meanings and datatypes of the columns ("fields") it contains,
65+
follows the [Frictionless specification](https://specs.frictionlessdata.io/tabular-data-resource/),
66+
and can be used to validate and correctly load the described file.
67+
68+
### Opening Scores
69+
70+
After navigating to your local copy, you can open the scores in the folder `MS3` with the free and open source score
71+
editor [MuseScore](https://musescore.org). Please note that the scores have been edited, annotated and tested with
72+
[MuseScore 3.6.2](https://github.com/musescore/MuseScore/releases/tag/v3.6.2).
73+
MuseScore 4 has since been released which renders them correctly but cannot store them back in the same format.
74+
75+
### Opening TSV files in a spreadsheet
76+
77+
Tab-separated value (TSV) files are like Comma-separated value (CSV) files and can be opened with most modern text
78+
editors. However, for correctly displaying the columns, you might want to use a spreadsheet or an addon for your
79+
favourite text editor. When you use a spreadsheet such as Excel, it might annoy you by interpreting fractions as
80+
dates. This can be circumvented by using `Data --> From Text/CSV` or the free alternative
81+
[LibreOffice Calc](https://www.libreoffice.org/download/download/). Other than that, TSV data can be loaded with
82+
every modern programming language.
83+
84+
### Loading TSV files in Python
85+
86+
Since the TSV files contain null values, lists, fractions, and numbers that are to be treated as strings, you may want
87+
to use this code to load any TSV files related to this repository (provided you're doing it in Python). After a quick
88+
`pip install -U ms3` (requires Python 3.10 or later) you'll be able to load any TSV like this:
89+
90+
```python
91+
import ms3
92+
93+
labels = ms3.load_tsv("harmonies/wq50n01a.harmonies.tsv")
94+
notes = ms3.load_tsv("notes/wq50n01a.notes.tsv")
95+
```
96+
4297

4398
## Version history
4499

@@ -48,6 +103,10 @@ See the [GitHub releases](https://github.com/DCMLab/cpe_bach_keyboard/releases).
48103

49104
Please [create an issue](https://github.com/DCMLab/cpe_bach_keyboard/issues) and/or feel free to fork and submit pull requests.
50105

106+
## Cite as
107+
108+
> Johannes Hentschel, Yannis Rammos, Markus Neuwirth, & Martin Rohrmeier. (2025). Carl Philipp Emanuel Bach – Works for Keyboard (A corpus of annotated scores) [Data set]. Zenodo. https://doi.org/{{ concept_doi }}
109+
51110
## License
52111

53112
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License ([CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)).
@@ -56,8 +115,11 @@ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
56115

57116
## File naming convention
58117

59-
60-
118+
```regex
119+
wq(?<wotquenne>\d{2,3})
120+
n(?<no>\d{2})
121+
(?<movement>[a-c])?
122+
```
61123

62124
## Overview
63125
|file_name|measures|labels|standard| annotators | reviewers |

0 commit comments

Comments
 (0)