lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertical spacing help


From: Jean Abou Samra
Subject: Re: Vertical spacing help
Date: Tue, 23 Mar 2021 07:11:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Le 23/03/2021 à 03:12, Dimitris Marinakis a écrit :

I've managed to fix it thankfully!
I think placing a padding override at the Score block level breaks all other tweaks in the StaffGroup or Staff level.

There is no VerticalAxisGroup on Score context as you can
learn from

http://lilypond.org/doc/v2.22/Documentation/internals/verticalaxisgroup

So the effect of you override is only visible because
the default values are inherited by Staff contexts.
Consider:


\version "2.23.1"

\layout {
  \context {
    \Score
    \override VerticalAxisGroup.staff-staff-spacing.padding = 15
  }
}

<<
   \new StaffGroup \with {
     \override StaffGrouper.staff-staff-spacing =
       #'((basic-distance . 0)
          (minimum-distance . 0)
          (padding . 0)
          (stretchability . 0))
   } <<
     \new Staff { c'1 \break c'1 }
     \new Staff { r1 c'1 }
   >>
   \new StaffGroup <<
     \new Staff { c'1 c'1 }
     \new Staff { c'1 r1 }
   >>
 >>

Here it looks like the StaffGrouper override is
ineffective. This is because every Staff still wants
to honor spacing values, and they take the padding
from the Score.

This can indeed cause surprises when dealing with
spacing, and often it's unclear what value to
adjust. What might help would be extending
the annotate-spacing feature to show the spacing
variables within the system too.

Best,
Jean




reply via email to

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