Go to

Contact:
Perry Roland, University of Virginia Library
434.982.2702 or pdr4h at virginia dot edu

Home

 
Go to Music Encoding Initiative (MEI) home

Example Files

Hello world example showing the barest minimum for MEI compliance for an encoding consisting of a single middle C note.

An example showing the basic file structure of a typical MEI instance.

Examples from Beyond MIDI: The Handbook of Musical Codes. Eleanor Selfridge-Field, ed. Cambridge, Mass: MIT Press, 1997. The MEI files were created from MusicXML files using the 2mei.xsl and 2mei2.xsl stylesheets. They are all valid against the latest version of the DTD. The postscript was generated by Music Publisher (MUP, available from Arkkra Enterprises). The MUP input was created by transforming the MEI file with an XSLT stylesheet. The stylesheet will be made available soon. Eventually, there may be software which takes MEI input and produces notation output directly; however, the current process is sufficient to demonstrate MEI's capabilities.

The following files were converted to MEI from public domain MusicXML 1.0 sample files available from Recordare using the 2mei.xsl and 2mei2.xsl stylesheets.

The following files were exported from SharpEye as MusicXML and converted to MEI using the 2mei.xsl and 2mei2.xsl stylesheets.

The following files are part of a test for the Online Chopin Variorum Edition (OCVE). The MEI file was derived via XSLT from a MusicXML file, which was produced by SharpEye and hand-edited by Craig Sapp of Stanford University. The MEI file was hand-edited as well in order to add some features that SharpEye didn't catch, such as pedal and tempo markings, to correct some errors, such as missing notes and incorrect phrase mark attachments, and to remedy deficiencies in the transformation process. The machine-generated MIDI file was created using Mup and the MIDI file of the complete piece was downloaded from http://www.kunstderfuge.com/mid/chopin/barcarolle_60_(c)lefeldt.mid. IMPORTANT! All these files are valid against version 1.5b. No effort has been made to make them conform to version 1.7b as yet. Version 1.5b is available at http://www.lib.virginia.edu/innovation/mei/mei15b/

NOTE: The following MEI files were created by hand using a text editor. They too are valid against version 1.5b of the MEI DTD. At some point in the not-too-distant future, filters will be written to translate existing files from formats other than MusicXML into MEI. Perhaps later, dedicated editors will be created as well.

  • Figures scanned from Byrd, Donald. "Music Notation Software and Intelligence."Computer Music Journal, v. 18, no. 1 (1994). MEI markup is provided for each figure; however, Postscript output has not yet been generated for these examples.

  • Other examples


University of Virginia Library
PO Box 400113, Charlottesville, VA 22904-4113
ph: (434) 924-3021, fax: (434) 924-1431, library@virginia.edu

Text Version    |   Libraries   |   Depts./Contacts   |  U.Va. Home   |   ITC

Website Feedback   |   Search   |   Questions? Ask a Librarian   |   Hours   |   Map   |   Policies   |   Jobs

Tracking Opt-out    |   © by the Rector and Visitors of the University of Virginia

Federal Library Depository logo  This library is a Congressionally designated depository for U.S. Government documents. Public access to the Government documents is guaranteed by public law.