A demo for our paper 'Studying Large Plainchant Corpora Using chant21' presented at the Digital Libraries for Musicology 2020 conference. In the demo we show how you can work with the CantusCorpus, GregobaseCorpus and the Python package Chant21.
I'm running these jupyter notebooks in a fresh Python environment; my setup is as follows:
pyenv local 3.7.6
python -m venv env
source env/bin/activate
These are the required packages:
pip install chant21 music21==5.7.2 jupyterlab matplotlib pandas numpy scipy
Note that I haven't tested chant21 with music21 v6 yet, and there seem to be some issues with the HTML previews there.
Next, download the CantusCorpus
and GregoBaseCorpus and unzip these in a directory data
directory:
- data
- cantuscorpus-v0.2
- README.md
- corpus-generation.log
- csv
- ...
- gregobasecorpus-v0.4
- README.md
- corpus-generation.log
- csv
- ...
- gabc
- 00001.gabc
- 00002.gabc
- ...
- html
- 00001.html
- 00002.html
- ...
Then:
jupyter lab
And that should be it!