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

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

Open
fernandoherreradelasheras opened this issue Feb 2, 2025 · 0 comments

Comments

@fernandoherreradelasheras
Copy link
Contributor

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

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

2 participants