On 2021-07-22 7:12 am, Silvain Dupertuis wrote:
Hello,
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