StaffGroup \consist BarNumber with RemoveEmptyStaves

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

StaffGroup \consist BarNumber with RemoveEmptyStaves

Pierre-Luc Gauthier
Hello there,

So if you \consists the "Bar_number_engraver" in the StaffGroup
context and remove it from the score context, it works fine and as
expected printing BarNumbers on the top of every StaffGroup.

But if you also \RemoveEmptyStaves (provided some StaffGroup are
flagged as empty) the now orphan BarNumbers bubble up to the top of
the score. This can goes unnoticed as they're often perfectly aligned.
Same goes for \mark and other similar grob.

Sorry for the crude MWE below but it clearly shows the issue.

\version "2.21.0"

\layout {
  \context {
    \remove "Bar_number_engraver"
    \override BarNumber.self-alignment-X = #LEFT
    \override BarNumber.font-size = #10
  \context {
    \consists "Bar_number_engraver"

  \new StaffGroup {c'''1 \break 1}
  \new StaffGroup {c'  1 \break R1}

Should this be filed as a bug?
Pierre-Luc Gauthier

lilypond-user mailing list
[hidden email] (480 bytes) Download Attachment
StaffGroupBarNumberRemoveEmptyStaves-01.png (25K) Download Attachment
StaffGroupBarNumberRemoveEmptyStaves-02.png (124K) Download Attachment