On Fri 30 May 2025 at 22:13:25 (+0200), Steven Senden wrote:
> Does Lilypond automatically offset barlines on consecutive systems so
> they're not aligned? I'm sure I read this somewhere in the documentation,
> however I'm running into a case where all three systems with the exact same
> rhythms align perfectly:
>
> \version "2.25.25"
> \relative {
> \time 3/4
> R2.*2
> d'''32 e d e d e d c g a g a g a g f d e d e d e d c
> \repeat unfold 3 { g a g a g a g f d e d c f g a c f a c f a16 r
> d,32 e d e d e d c g a g a g a g f d e d e d e d c }
> }
>
> In this example, at the very least the barline of the third system should
> be moved either left or right.
> Is there an easy way to tell Lilypond to offset barlines?
I take it that you trying to reproduce the appearance of the
Breitkopf flute part, IMSLP926318-PMLP6099, rather than the
Peters one, IMSLP620652-PMLP6099. Looking back at the thread
https://lists.gnu.org/archive/html/lilypond-user/2025-05/msg00001.html
which is striving in the opposite direction, it would appear
from Kieren's solution that a simple way is to override the
NoteHead.extra-spacing-width in one of the measures, eg:
R2.*2
d'''32 e d e d e d c g a g a g a g f d e d e d e d c
g a g a g a g f d e d c f g a c f a c f a16 r
d,32 e d e d e d c g a g a g a g f d e d e d e d c
g a g a g a g f d e d c f g a c f a c f a16 r
\override NoteHead.extra-spacing-width = #'(0 . 0.8)
d,32 e d e d e d c g a g a g a g f d e d e d e d c
\override NoteHead.extra-spacing-width = #'(0 . 0)
g a g a g a g f d e d c f g a c f a c f a16 r
d,32 e d e d e d c g a g a g a g f d e d e d e d c
(I have unfolded the \repeat unfold.)
0.8 seems to replicate the Breitkopf part, but you can fine-tune
the value to taste.
Cheers,
David.