I am using RemoveEmptyStaffContext to hide empty staves. Now I want to show bar numbers for each bar above the first "visible" staff of each system.
My first attempt was to set BarNumber #'break-visibility = #all-visible for the entire score: \version "2.12.2" \layout { \context { \Score \override BarNumber #'break-visibility = #all-visible } \context { \RemoveEmptyStaffContext } } \relative c' << \new Staff { e4 f g a ^ \markup { "Text below bar number" } e4 f g a \break R1 \break a4 b c2 } \new Staff { c,4 d e f c,4 d e f \break b1 \break f4 g c,2 } >> but this places bar numbers above all staff elements (including markups), so this does not look nice at all. My second attempt was to remove the bar engraver for the score and set it again for the first staff: \version "2.12.2" \layout { \context { \Score \remove "Bar_number_engraver" } \context { \RemoveEmptyStaffContext } } \relative c' << \new Staff \with { \consists "Bar_number_engraver" \override BarNumber #'break-visibility = #all-visible } { e4 f g a ^ \markup { "Text above bar number" } e4 f g a \break R1 \break a4 b c2 } \new Staff { c,4 d e f c,4 d e f \break b1 \break f4 g c,2 } >> This works fine for the first and the third system, but no bar numbers are shown in the second system because the first staff in this system was removed by RemoveEmptyStaffContext. Is there any possibility to tell LilyPond something like "show all bar numbers for the first visible staff in each system"? Thanks for suggestions... -- View this message in context: http://old.nabble.com/RemoveEmptyStaffContext-und-Bar_number_engraver-tp33136191p33136191.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user