MEI

From CCARH Wiki
Revision as of 02:34, 21 January 2020 by Craig (talk | contribs) (→‎Example)
Jump to navigation Jump to search

MEI is a digital format for musical scores in the XML data structure. The acronym stands for "Music Encoding Initiative", and it is modeled after TEI, the Text Encoding Initiative.

Purpose

MEI is intended as a data representation for critical editions of music. This means that variants between different editions can be encoded within the same document. See this chapter in the MEI Guidelines for an explanation of this feature.

Example

Meiexample.png
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="4.0.0">
 <meiHead>
 <fileDesc>
  <titleStmt>
  <title />
  </titleStmt>
  <pubStmt />
 </fileDesc>
 </meiHead>
 <music>
 <body>
  <mdiv>
  <score>
   <scoreDef>
   <staffGrp>
    <staffDef n="1" lines="5">
    <clef shape="G" line="2" />
    <meterSig count="4" unit="4" />
    </staffDef>
   </staffGrp>
   </scoreDef>
   <section>
   <measure right="end" n="0">
    <staff n="1">
    <layer n="1">
     <beam>
     <note dur="8" oct="4" pname="c" accid.ges="n">
      <verse n="1">
      <syl con="u" wordpos="t">some</syl>
      </verse>
     </note>
     <note dur="16" oct="4" pname="e" accid.ges="n" />
     <note dur="16" oct="4" pname="f" accid.ges="n" />
     </beam>
     <note xml:id="note-L8F1" dots="1" dur="2" oct="4" pname="g" accid.ges="n">
     <verse n="1">
      <syl>text</syl>
     </verse>
     </note>
    </layer>
    </staff>
    <fermata staff="1" startid="#note-L8F1" place="above" />
   </measure>
   </section>
  </score>
  </mdiv>
 </body>
 </music>


Links