Skip to content

system wrong justification when using smart breaks and no justification #3934

Open
@fernandoherreradelasheras

Description

Rendering this MEI file:

test-sb.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>
   </meiHead>
   <music>
      <body>
         <mdiv>
            <score>
               <scoreDef>
                  <staffGrp>
                        <staffDef n="1" lines="5" meter.count="3" meter.unit="2">
                           <clef shape="G" line="2" />
                        </staffDef>
                  </staffGrp>
               </scoreDef>
               <section>
                  <measure n="1">
                     <staff n="1">
                        <layer n="1">
                           <rest dur="2" />
                           <note dur="2" oct="4" pname="a" />
                           <note dur="2" oct="4" pname="a" />
                        </layer>
                     </staff>
                  </measure>
                  <measure n="2">
                     <staff n="1">
                        <layer n="1">
                           <note dur="2" oct="5" pname="d" />
                           <note dur="1" oct="4" pname="b" />
                        </layer>
                     </staff>
                  </measure>
                  <sb/>
                  <measure n="3">
                     <staff n="1">
                        <layer n="1">
                           <note dur="2" oct="5" pname="d" />
                           <note dur="1" oct="4" pname="b" />
                        </layer>
                     </staff>
                  </measure>
                  <sb/>
                  <measure n="4">
                     <staff n="1">
                        <layer n="1">
                           <note dur="1" dots="1" oct="4" pname="b" />
                        </layer>
                     </staff>
                  </measure>
               </section>
            </score>
         </mdiv>
      </body>
   </music>
</mei>

with --breaks smart --breaks-smart-sb 0.01 --no-justification produces an output properly using both encoded breaks after measures 2 and 3. However systems are wrongly justified:

Image

The output should be the same as the one produced with --breaks encoded --no-justification:

Image

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