humdrum-tools / verovio-humdrum-viewer

Verovio Humdrum Viewer
http://verovio.humdrum.org
37 stars 9 forks source link

Distinguish between augmentation dots and dots of division for **mens to MEI conversion #849

Closed craigsapp closed 1 year ago

craigsapp commented 1 year ago

See https://music-encoding.org/guidelines/v5/content/mensural.html#dots

Augmentation dots (when perfecting a note) should be encoded as:

<dot form="aug">

Is for an augmentation dot

<dot form="div">
craigsapp commented 1 year ago

Implemented in commit https://github.com/rism-digital/verovio/commit/ad474b6cf914b37111a4767968d6f51184b027f0

Test:

**mens
*clefC3
*met(C|)
=
sp:c
Md
Sie
=
*-

Conversion to MEI:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/5.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/5.0/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="5.0">
 <meiHead>
  <fileDesc>
   <titleStmt>
    <title />
   </titleStmt>
   <pubStmt />
  </fileDesc>
  <encodingDesc>
   <appInfo>
    <application isodate="2023-10-02T14:47:22" version="4.1.0-dev-dc0ce11">
     <name>Verovio</name>
     <p>Transcoded from Humdrum</p>
    </application>
   </appInfo>
  </encodingDesc>
  <workList>
   <work>
    <title />
   </work>
  </workList>
 </meiHead>
 <music>
  <body>
   <mdiv xml:id="mrs4b4b">
    <score xml:id="s1ofl1bj">
     <scoreDef xml:id="sisnfv2" midi.bpm="280.000000">
      <staffGrp xml:id="skjv7z">
       <staffDef xml:id="staffdef-L1F1" n="1" notationtype="mensural.white" lines="5">
        <clef xml:id="clef-L2F1" shape="C" line="3" />
       </staffDef>
      </staffGrp>
     </scoreDef>
     <section xml:id="section-L1F1">
      <staff xml:id="staff-L1F1" n="1">
       <layer xml:id="layer-L1F1N1" n="1">
        <mensur xml:id="mensur-L3F1" modusmaior="2" modusminor="2" prolatio="2" tempus="2" sign="C" slash="1" />
        <note xml:id="note-L5F1" dur="semibrevis" dur.quality="perfecta" oct="4" pname="c" />
        <dot xml:id="d12hdu8s" form="aug" />
        <note xml:id="note-L6F1" dur="minima" oct="4" pname="d" />
        <note xml:id="note-L7F1" dur="brevis" oct="4" pname="e" />
        <barLine xml:id="barline-L8F1" form="single" />
       </layer>
      </staff>
     </section>
    </score>
   </mdiv>
  </body>
 </music>
</mei>