[Top][All Lists]

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

Re: Distance between staffs

From: Aaron Hill
Subject: Re: Distance between staffs
Date: Thu, 22 Jul 2021 15:39:03 -0700
User-agent: Roundcube Webmail/1.4.9

On 2021-07-22 7:12 am, Silvain Dupertuis wrote:
I found a nice way to do it, using Lilypond 20, by specifying
staff-staff-spacing.padding with a negative value

    \new PianoStaff \with {
      % midiInstrument = "tenor sax"
      \override StaffGrouper.staff-staff-spacing = #'(
                            (basic-distance . 0)
                            (padding . 0)) % s0 for first exemple ;
second example : (padding . -3.09)

The result was this

 with padding=0
 with the negative adjustment (padding = -3.06)

Unfortunately, this adjustment no longer works in LilyPond 22
It looks like the property was broken, or no longer function this way?
Whatever the value, the distance is not affected.

Negative padding still works, but you failed to set minimum-distance. Seems there was a change of behavior around the assumed defaults.

That said, you should be relying solely on basic-distance/minimum-distance to separate the staves properly. You then just need a suitably large negative padding to handle the overlapping ink. Negative infinity should be large enough for most situations:

\version "2.22.0"

\new PianoStaff
\with {
  \override StaffGrouper.staff-staff-spacing =
  #'((basic-distance . 6) (minimum-distance . 6)
     (padding . -inf.0) (stretchability . 0))
<< \new Staff { g,4 g g' g'' | s1 }
   \new Staff { \clef "bass" s1 | g,4 g g' g'' } >>

-- Aaron Hill

Attachment: system-staff-spacing.cropped.png
Description: PNG image

reply via email to

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