lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange formatting with involved `\break`


From: Jean Abou Samra
Subject: strange formatting with involved `\break`
Date: Fri, 16 Oct 2020 16:34:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Folks,


can someone please explain to me why the following code

   {
     \compressEmptyMeasures
     c'4 4 4 4 | 4 4 4 4 | 4 4 4 4 | 4 4 4 4 | \break
     R4*120 | \break
     c'4 4 4 4 | 4 4 4 4 | 4 4 4 4 | 4 4 4 4 |
     c'4 4 4 4 | 4 4 4 4 | 4 4 4 4 | 4 4 4 4 |
     c'4 4 4 4 | 4 4 4 4 | 4 4 4 4 | 4 4 4 4 |
     c'4 4 4 4 | 4 4 4 4 | 4 4 4 4 | 4 4 4 4 |
   }

causes such an uneven formatting after the multi-measure?  And is
there a work-around available?


     Werner

Hi,
(Excuse the bad email threading, which will get fixed next time I reply.)

Interesting. The example can be made even more minimal, without
\compressEmptyMeasures:

{
  c'1
  \break
  \repeat unfold 35 { c'1 }
}

This produces the same bad output in 2.20. In 2.18, the output
is still suboptimal, but different (files attached).

A workaround would be

\paper {
  page-breaking = #ly:minimal-breaking
}

Both ly:optimal-page-breaking and ly:page-turn-breaking are faulty;
ly:one-page-breaking is not.

This issue could be related:

https://gitlab.com/lilypond/lilypond/-/issues/5488

Regards,
Jean

Attachment: mwe-2.18.pdf
Description: Adobe PDF document

Attachment: mwe-2.20.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]