humdrum-tools / verovio-humdrum-viewer

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

Square bracket after newline problem in instrument names #893

Open craigsapp opened 2 months ago

craigsapp commented 2 months ago

example:

Screenshot 2024-04-29 at 1 57 07 PM
**kern
*I"Tuba\n[sounds as written]
=1
1ccc
=
*-

Also relates to tempo markings.

craigsapp commented 2 months ago

"Tuba" text gets lost in the conversion (not in verovio):

<?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>
    <unpub>This MEI file was created by Verovio's Humdrum converter. When published, this unpub element should be removed, and the enclosing pubStmt element should be properly filled out.</unpub>
   </pubStmt>
  </fileDesc>
  <encodingDesc>
   <appInfo>
    <application isodate="2024-04-29T13:59:26" version="4.2.0-dev-764d3d2-dirty">
     <name>Verovio</name>
     <p>Transcoded from Humdrum</p>
    </application>
   </appInfo>
  </encodingDesc>
  <extMeta>
   <frames xmlns="http://www.humdrum.org/ns/humxml" />
  </extMeta>
 </meiHead>
 <music decls="#work1_encoded">
  <body>
   <mdiv xml:id="m1x28ems">
    <score xml:id="sxogta4">
     <scoreDef xml:id="s1wtwkv4" midi.bpm="400.000000" tempo.dist="3.0000vu">
      <staffGrp xml:id="s1g3lqqb">
       <staffDef xml:id="staffdef-L1F1" n="1" lines="5">
        <label xml:id="label-L2F1">
         <lb xml:id="lva025a" />
         <rend xml:id="rxv12c4">[sounds as written]</rend>
        </label>
        <clef xml:id="c4sfw8n" shape="G" line="2" />
       </staffDef>
      </staffGrp>
     </scoreDef>
     <section xml:id="section-L1F1">
      <measure xml:id="measure-L1" n="1">
       <staff xml:id="staff-L1F1" n="1">
        <layer xml:id="layer-L1F1N1" n="1">
         <note xml:id="note-L4F1" dur="1" oct="6" pname="c" accid.ges="n" />
        </layer>
       </staff>
      </measure>
     </section>
    </score>
   </mdiv>
  </body>
 </music>
</mei>