Tutorial on the basics of MEI
- Clone the repository
- Create your own branch (in which you will push your output files)
- Go into your mei_tutorial local copy and run:
docker-compose up
- When it finishes (you will see something similar to
Starting mei_tutorial_pymei_1 ... done
), open a new terminal (go into your mei_tutorial local copy again) and run:
docker-compose exec pymei bash
$> ipython
import pymei
- The path to the template file is:
/opt/drafts/MEI_CMN-general-structure.mei
- Edit this file using pymei and save the result as
/opt/drafts/output_with_pymei.mei
- Check the result in Verovio's MEI Viewer
- Push the resulting MEI file into your own branch
The doc
and element
are just variables used here for reference.
doc
refers to an MeiDocument
object.
element
and element2
refer to MeiElement
objects.