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 {
    \Score
    \remove "Bar_number_engraver"
    \override BarNumber.self-alignment-X = #LEFT
    \override BarNumber.font-size = #10
    \RemoveEmptyStaves
  }
  \context {
    \StaffGroup
    \consists "Bar_number_engraver"
  }
}

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

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

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

StaffGroupBarNumberRemoveEmptyStaves-01.ly (480 bytes) Download Attachment
StaffGroupBarNumberRemoveEmptyStaves-01.png (25K) Download Attachment
StaffGroupBarNumberRemoveEmptyStaves-02.png (124K) Download Attachment