lilypond-user
[Top][All Lists]
Advanced

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

Re: Disable extra space around StaffGroup?


From: Nathan Sprangers
Subject: Re: Disable extra space around StaffGroup?
Date: Wed, 21 Feb 2018 00:54:38 -0500

Hi Kieren,

I think it may be specific to nested staff groups, which didn't occur to me in my initial post. Without changing any defaults, notice how there is extra space before and after the clarinet staff group:


Inline image 1
I assumed this is by design because the documentation states "The space between groups is typically larger than the space between staves of the same group."

I was able to get it to flow more evenly when staffgroup-staff and staff-staff spacing had the same value:

\score {
  \layout {
    \context {
      \StaffGroup
      \override StaffGrouper.staff-staff-spacing = #'(
                                                       (basic-distance . 6)
                                                       (minimum-distance . 0)
                                                       (padding . 1)
                                                       (stretchabilty . 0))
      \override StaffGrouper.staffgroup-staff-spacing = #'(
                                                       (basic-distance . 6)
                                                       (minimum-distance . 0)
                                                       (padding . 1)
                                                       (stretchabilty . 0))

Inline image 2

Thank you so much for taking the time to look at this. In the future I'll be sure to post if I find a solution to save other people from spending time on the issue. I've only just started using lilypond, but it clearly has a fantastic community.

Best,
Nathan

On Tue, Feb 20, 2018 at 10:32 PM, Kieren MacMillan <address@hidden> wrote:
Hi again,

Here's another example, with interspersed single Staff contexts.
I can’t find any "extra space" above the groups…?

Best,
Kieren.

%%%  SNIPPET BEGINS
\version "2.18.2"

\paper {
  top-margin = 0
  top-system-spacing =
      #'((basic-distance . 0) (minimum-distance . 0) (padding . 0) (stretchability . 0))
}

\layout {
  \context {
    \Score
    \override VerticalAxisGroup.staff-staff-spacing =
        #'((basic-distance . 0) (minimum-distance . 0) (padding . 0) (stretchability . 0))
    \override VerticalAxisGroup.default-staff-staff-spacing =
        #'((basic-distance . 0) (minimum-distance . 0) (padding . 0) (stretchability . 0))
  }
  \context {
    \StaffGroup
    \override VerticalAxisGroup.staff-staff-spacing =
        #'((basic-distance . 0) (minimum-distance . 0) (padding . 0) (stretchability . 0))
  }
}

\score {
  <<
    \new StaffGroup <<
      \new Staff << c''1 >>
      \new Staff << c''1 >>
    >>
    \new Staff << c''1 >>
    \new StaffGroup <<
      \new Staff << c''1 >>
      \new Staff << c''1 >>
    >>
    \new Staff << c''1 >>
    \new Staff << c''1 >>
  >>
}
%%%  SNIPPET ENDS
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden



reply via email to

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