ECHOES-from-the-Past / GABCtoMEI

2 stars 1 forks source link

GABCtoMEI

In addition to the GABC specifications (that can be found here), we followed the next encoding guidelines to encode all the features necessary for converting GABC files into MEI Neumes files. This conversion is done with the gabc-tokens_to_mei-elements.py script.

Encoding Guidelines

Conversion Process (GABC to MEI)

To use the Python gabc-tokens_to_mei-elements.py script, you need to provide the following information:

These are a few examples of how to run the program, provided that the input GABC file is in the GABC_infiles folder:

The program will produce two types of MEI files:

  1. One that encodes the location of the notes in the staff using @loc (see the attribute description and its values). These files are found in the MEI_intermedfiles folder within the MEI_outfiles.
  2. And one that encodes the final file by substituting the @loc value by:

    1. The pitch (with @pname and @oct), in the case of square notation.
    2. Recomputing the location value (@loc) based on a reference line (<staffDef lines="1">), in the case of Aquitanian notation.

    These output files for square and Aquitanian notation can be found in the MEI_outfiles folder.