Skip to content

Beams follow note@ho #4232

@wergo

Description

@wergo

With the wonderful support for @ho/@vo and @startho/@startvo, @endho/@endvo (#4221 and #4211), a <note> may be visually shifted to the left/right. While a <slur> attached to that note can be shifted using @startho, a beam connected to that note remains unshifted (and cannot be shifted wit @startho, as it is not supported by the schema).

It would be desirable that beams enclosing shifted notes will be shifted visually as well (and stay connected to note stems).

Minimal example with three beamed notes; first and last note are shifted to the left or the right, respectively:

Image
MEI encoding
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/5.1/mei-CMN.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/5.1/mei-CMN.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xml:id="m7iqrme1" meiversion="5.1" xmlns="http://www.music-encoding.org/ns/mei">
   <meiHead xml:id="msedwhj1">
      <fileDesc xml:id="flkjc8r2">
         <titleStmt xml:id="tr6gaby1">
            <title xml:id="taumksk1">Beams follow @ho</title>
         </titleStmt>
         <pubStmt xml:id="plufrw51"/>
      </fileDesc>
      <encodingDesc xml:id="esy7ukk2">
         <appInfo xml:id="atvv2ad">
            <application xml:id="a2rar8f1" enddate="2025-12-09T11:35:01" startdate="2025-12-09T11:33:28" version="1.2.9">
               <name xml:id="nohmhyi1">mei-friend</name>
               <p xml:id="poyhhdx1">First edit by mei-friend 1.2.9.</p>
            </application>
         </appInfo>
      </encodingDesc>
   </meiHead>
   <music xml:id="mjg3ec">
      <body xml:id="b3086p6">
         <mdiv xml:id="m5zuyy01">
            <score xml:id="s3sh2uu2">
               <scoreDef xml:id="s2noeju2">
                  <staffGrp xml:id="s7z3f9j1">
                     <staffDef xml:id="s0co14s1" clef.line="2" clef.shape="G" lines="5" n="1"/>
                  </staffGrp>
               </scoreDef>
               <section xml:id="spbbpg2">
                  <measure xml:id="mwjfrn8" n="1">
                     <staff xml:id="skbbryl1" n="1">
                        <layer xml:id="l0uzn28" n="1">
                           <beam xml:id="bza69ul1">
                              <note xml:id="naah8fp2" dur="16" ho="-3" oct="5" pname="d"/>
                              <note xml:id="njqlh151" dur="8" oct="5" pname="c"/>
                              <note xml:id="nunn13y1" dur="16" ho="3" oct="4" pname="b"/>
                           </beam>
                        </layer>
                     </staff>
                  </measure>
               </section>
            </score>
         </mdiv>
      </body>
   </music>
</mei>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions