Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cue-sized note + stem + beam interaction #3402

Open
craigsapp opened this issue May 3, 2023 · 0 comments
Open

cue-sized note + stem + beam interaction #3402

craigsapp opened this issue May 3, 2023 · 0 comments

Comments

@craigsapp
Copy link
Contributor

It would be useful if the cue-sized notes that are attached to beams in the following example were attached to their stems properly:

Screenshot 2023-05-02 at 7 07 06 PM

Problem notes highlighted in green.

Click to view MEI data for above example.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/dev/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/dev/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.0-dev">
 <meiHead>
  <fileDesc>
   <titleStmt>
    <title />
   </titleStmt>
   <pubStmt />
  </fileDesc>
  <encodingDesc>
   <appInfo>
    <application isodate="2023-05-02T19:04:47" version="3.16.0-dev-928a68c-dirty">
     <name>Verovio</name>
     <p>Transcoded from Humdrum</p>
    </application>
   </appInfo>
  </encodingDesc>
  <workList>
   <work>
    <title />
   </work>
  </workList>
 </meiHead>
 <music>
  <body>
   <mdiv xml:id="mgir9cu">
    <score xml:id="s18d614u">
     <scoreDef xml:id="s1nzhf63">
      <staffGrp xml:id="s1hhemh1">
       <staffDef xml:id="staffdef-L1F1" n="1" lines="5">
        <clef xml:id="c1l95gge" shape="G" line="2" />
        <meterSig xml:id="metersig-L2F1" count="4" unit="4" />
       </staffDef>
      </staffGrp>
     </scoreDef>
     <section xml:id="section-L1F1">
      <measure xml:id="measure-L1">
       <staff xml:id="staff-L1F1" n="1">
        <layer xml:id="layer-L1F1N1" n="1">
         <beam xml:id="beam-L4F1-L5F1">
          <note xml:id="note-L4F1" dur="8" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L5F1" type="color-marked" dur="8" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L6F1-L7F1">
          <note xml:id="note-L6F1" type="color-marked" dur="8" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L7F1" dur="8" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L8" n="2">
       <staff xml:id="staff-L8F1N1" n="1">
        <layer xml:id="layer-L8F1N1" n="1">
         <beam xml:id="beam-L9F1-L10F1">
          <note xml:id="note-L9F1" dur="8" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L10F1" type="color-marked" dur="8" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L11F1-L12F1">
          <note xml:id="note-L11F1" type="color-marked" dur="8" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L12F1" dur="8" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L13">
       <staff xml:id="staff-L13F1N1" n="1">
        <layer xml:id="layer-L13F1N1" n="1">
         <beam xml:id="beam-L14F1-L15F1">
          <note xml:id="note-L14F1" dur="16" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L15F1" type="color-marked" dur="16" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L16F1-L17F1">
          <note xml:id="note-L16F1" type="color-marked" dur="16" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L17F1" dur="16" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L18" n="2">
       <staff xml:id="staff-L18F1N1" n="1">
        <layer xml:id="layer-L18F1N1" n="1">
         <beam xml:id="beam-L19F1-L20F1">
          <note xml:id="note-L19F1" dur="16" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L20F1" type="color-marked" dur="16" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L21F1-L22F1">
          <note xml:id="note-L21F1" type="color-marked" dur="16" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L22F1" dur="16" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L23">
       <staff xml:id="staff-L23F1N1" n="1">
        <layer xml:id="layer-L23F1N1" n="1">
         <beam xml:id="beam-L24F1-L25F1">
          <note xml:id="note-L24F1" type="placed" dur="8" oct="4" pname="d" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L25F1" type="placed" dur="8" oct="5" pname="g" cue="true" stem.dir="down" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L26F1-L27F1">
          <note xml:id="note-L26F1" type="color-marked placed" dur="8" oct="4" pname="d" color="limegreen" cue="true" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L27F1" type="placed" dur="8" oct="5" pname="g" stem.dir="down" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L28" right="dbl">
       <staff xml:id="staff-L28F1N1" n="1">
        <layer xml:id="layer-L28F1N1" n="1">
         <beam xml:id="beam-L29F1-L30F1">
          <note xml:id="note-L29F1" type="placed" dur="16" oct="4" pname="c" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L30F1" type="placed" dur="16" oct="5" pname="a" cue="true" stem.dir="down" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L31F1-L32F1">
          <note xml:id="note-L31F1" type="color-marked placed" dur="16" oct="4" pname="c" color="limegreen" cue="true" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L32F1" type="placed" dur="16" oct="5" pname="a" stem.dir="down" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L34">
       <staff xml:id="staff-L34F1N1" n="1">
        <layer xml:id="layer-L34F1N1" n="1">
         <beam xml:id="beam-L35F1-L36F1">
          <note xml:id="note-L35F1" dur="8" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L36F1" type="color-marked" dur="8" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L37F1-L38F1">
          <note xml:id="note-L37F1" type="color-marked" dur="8" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L38F1" dur="8" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L39" n="2">
       <staff xml:id="staff-L39F1N1" n="1">
        <layer xml:id="layer-L39F1N1" n="1">
         <beam xml:id="beam-L40F1-L41F1">
          <note xml:id="note-L40F1" dur="8" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L41F1" type="color-marked" dur="8" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L42F1-L43F1">
          <note xml:id="note-L42F1" type="color-marked" dur="8" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L43F1" dur="8" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L44">
       <staff xml:id="staff-L44F1N1" n="1">
        <layer xml:id="layer-L44F1N1" n="1">
         <beam xml:id="beam-L45F1-L46F1">
          <note xml:id="note-L45F1" dur="16" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L46F1" type="color-marked" dur="16" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L47F1-L48F1">
          <note xml:id="note-L47F1" type="color-marked" dur="16" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L48F1" dur="16" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L49" n="2">
       <staff xml:id="staff-L49F1N1" n="1">
        <layer xml:id="layer-L49F1N1" n="1">
         <beam xml:id="beam-L50F1-L51F1">
          <note xml:id="note-L50F1" dur="16" oct="4" pname="f" accid.ges="n" />
          <note xml:id="note-L51F1" type="color-marked" dur="16" oct="4" pname="g" color="limegreen" cue="true" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L52F1-L53F1">
          <note xml:id="note-L52F1" type="color-marked" dur="16" oct="4" pname="f" color="limegreen" cue="true" accid.ges="n" />
          <note xml:id="note-L53F1" dur="16" oct="4" pname="g" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L54">
       <staff xml:id="staff-L54F1N1" n="1">
        <layer xml:id="layer-L54F1N1" n="1">
         <beam xml:id="beam-L55F1-L56F1">
          <note xml:id="note-L55F1" type="placed" dur="8" oct="4" pname="d" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L56F1" type="placed" dur="8" oct="5" pname="g" cue="true" stem.dir="down" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L57F1-L58F1">
          <note xml:id="note-L57F1" type="color-marked placed" dur="8" oct="4" pname="d" color="limegreen" cue="true" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L58F1" type="placed" dur="8" oct="5" pname="g" stem.dir="down" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
      <measure xml:id="measure-L59" right="end">
       <staff xml:id="staff-L59F1N1" n="1">
        <layer xml:id="layer-L59F1N1" n="1">
         <beam xml:id="beam-L60F1-L61F1">
          <note xml:id="note-L60F1" type="placed" dur="16" oct="4" pname="c" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L61F1" type="placed" dur="16" oct="5" pname="a" cue="true" stem.dir="down" accid.ges="n" />
         </beam>
         <beam xml:id="beam-L62F1-L63F1">
          <note xml:id="note-L62F1" type="color-marked placed" dur="16" oct="4" pname="c" color="limegreen" cue="true" stem.dir="up" accid.ges="n" />
          <note xml:id="note-L63F1" type="placed" dur="16" oct="5" pname="a" stem.dir="down" accid.ges="n" />
         </beam>
        </layer>
       </staff>
      </measure>
     </section>
    </score>
   </mdiv>
  </body>
 </music>
</mei>

See this discussion (humdrum-tools/verovio-humdrum-viewer#812) for a real example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant