On Tue, 18 Mar 2025 at 05:46, Peter Crighton <petecrigh...@gmail.com> wrote:

> Hello all,
>
> has anybody familiar with openLilyLib come across this problem or would
> know how to fix it?
> I use the page-layout package in order to have access to break sets and
> noticed the following issue:
>
> When using break sets, bars with a MultiMeasureRest take up more
> horizontal space than with vanilla LilyPond. This is especially pronounced
> when the MultiMeasureRest is at the beginning of a line, but also true
> otherwise. Bars with notes or “normal” rests are not affected.
>

I’ve noticed that the problem not just exists with MultiMeasureRests, but
also with spacer rests.
However, it vanishes if I add a ChordNames context to the score including
anything but spacer rests at the expanded bar. This solves it for my
current use case, but in case I come across it in a different scenario
again: if there is no global fix for this, what would be my best option to
override certain things to achieve the desired normal spacing?
I’m coming very close with adjusting Score.SpacingSpanner.spacing-increment
in a new SpacingSection (at least if I increase the number of bars per
line, which is a more real-world example anyway), but I’m not sure if
that’s the best way to go about it:

\version "2.25.24"

\include "oll-core/package.ily"
\loadPackage \with {
  modules = conditional-breaks
} page-layout

\registerBreakSet breaks
\setBreaks breaks line-breaks #'()
\applyConditionalBreaks breaks

\setOption page-layout.conditional-breaks.use #'(
  line-breaks
)

\paper {
  ragged-right = ##f
}

\relative c'' {
  \newSpacingSection
  \override Score.SpacingSpanner.spacing-increment = 0.03
  R1 |
  \newSpacingSection
  \revert Score.SpacingSpanner.spacing-increment
  R1*3 |
}

Cheers,
Peter

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
https://www.petercrighton.de

Reply via email to