Music Encoding - DCMLab/ddd GitHub Wiki
Image extraction
The musical notation examples from the texts are marked up as "MusicTypes" and the images referring to those regions can thus be automatically extracted from the facsimiles.
However, we also have in-line musical examples that need to be extracted manually by searching for the $$MUSIC placeholder.
Encoding
We encode the musical examples using the simple humdrum syntax. It is documented here: https://doc.verovio.humdrum.org/ Using the Verovio Humdrum Viewer (VHV) is the most convenient way to encode the music because it renders it online so that errors can be quickly identified.
For example, this musical example from Riemann's Skizze einer neuen Methode der Harmonielehre (1880, p. 17)
is encoded as
!!!COM: Riemann, Hugo
!!!CDT: 1880
!!!OTL@DE: Skizze einer neuen Methode der Harmonielehre
!!!ONM: 15
**kern **kern
*staff2 *staff1
*clefF4 *clefG2
=1- =1-
2C G 2e [cc
2F A- 2f cc]
=2 =2
2CC C 2g ee
2F c 2a- cc
=3 =3
2E c 2g gg
2F c 2a- ff
*- *-
!!!ENC: Fabian C. Moss
!!!END: 2021/01/19
!!!EED: Fabian C. Moss
As can be seen, I have entered metadata about this resource at the top, and metadata about the encoding below the score information.
Conversion to MEI
Since the display on the website relies on MEI, the .krn files need to be translated. For single files, it is convenient to open them in VHV and convert it with Alt+m.
Locally, a batch of files can be converted with
for f in *.krn; do verovio --all-pages -t mei $f; done
The --all-pages flag is necessary to include the metadata as well.