---

** [issues:#5548] staffgroup-staff-spacing may be applied multiple times per 
StaffGroup**

**Status:** Accepted
**Created:** Wed Jul 31, 2019 01:40 PM UTC by Simon Albrecht
**Last Updated:** Wed Jul 31, 2019 01:40 PM UTC
**Owner:** nobody
**Attachments:**

- 
[atest-82.png](https://sourceforge.net/p/testlilyissues/issues/5548/attachment/atest-82.png)
 (11.9 kB; image/png)


[Reported by 
Harm:](https://lists.gnu.org/archive/html/bug-lilypond/2018-10/msg00027.html)

for nested container-contexts `StaffGrouper.staffgroup-staff-spacing` is
applied not only to the last Staff (as opposed to the NR).
See code below, png attached.

~~~~
:::TeX
\version "2.19.82"

mus = \new Voice { c''1 }

\score {
  <<
    \new StaffGroup
      <<
        \mus
        \new GrandStaff << \mus \mus >>
        \mus
        \new GrandStaff << \mus \mus >>
        \mus
      >>
    \mus
  >>
  \layout {

      %% Play with the padding-values
    \override StaffGroup.StaffGrouper.staffgroup-staff-spacing =
    #'((basic-distance . 0)
       (minimum-distance . 0)
       (padding . 10)
       (stretchability . 0))
    \override GrandStaff.StaffGrouper.staffgroup-staff-spacing =
    #'((basic-distance . 0)
       (minimum-distance . 0)
       (padding . 0)
       (stretchability . 0))

      %% Don't get disturbed by other settings
      \override Staff.VerticalAxisGroup.default-staff-staff-spacing =
    #'((basic-distance . 0)
       (minimum-distance . 0)
       (padding . 0)
       (stretchability . 0))
    \override StaffGroup.StaffGrouper.staff-staff-spacing =
    #'((basic-distance . 0)
       (minimum-distance . 0)
       (padding . 0)
       (stretchability . 0))
  }
}
~~~~

http://lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-within-systems
states:

> "Properties of the StaffGrouper grob
[...]
staffgroup-staff-spacing
The distance between the last staff of the current staff-group and the
staff just below it in the same system,
[...]."

Actually, the last Staff of a StaffGroup (or equivalent) _and_ every
Staff right before another container-context is spaced by
staffgroup-staff-spacing.

I'm undecided whether I'd call this behaviour a bug or a feature.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

Reply via email to