[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
StaffGroup \consist BarNumber with RemoveEmptyStaves
From: |
Pierre-Luc Gauthier |
Subject: |
StaffGroup \consist BarNumber with RemoveEmptyStaves |
Date: |
Fri, 2 Nov 2018 22:21:16 -0400 |
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
StaffGroupBarNumberRemoveEmptyStaves-01.ly
Description: Text Data
StaffGroupBarNumberRemoveEmptyStaves-01.png
Description: PNG image
StaffGroupBarNumberRemoveEmptyStaves-02.png
Description: PNG image
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- StaffGroup \consist BarNumber with RemoveEmptyStaves,
Pierre-Luc Gauthier <=