I'm using LilyPond and trying to get bar numbers to render on every measure, but when I have lyrics above the staff (which is pretty common in this style of music, which usually uses one staff line per two voices), the bar numbers appear above them which looks completely wrong.
A minimal example of the issue looks like this:
\version "2.25.4"
\pointAndClickOff
\language "english"
tenorPart = \fixed c {
\set Score.barNumberVisibility = #all-bar-numbers-visible
\override Score.BarNumber.break-visibility = #end-of-line-invisible
% \override Score.BarNumber.outside-staff-priority = ##f
% \override Score.BarNumber.outside-staff-padding = 0
% \override Score.BarNumber.outside-staff-horizontal-padding = 0
a'4 b'4 c''4 d''4 | d''4 c''4 b'4 a'4
}
leadPart = \fixed c { r1 }
tenorWords = \lyricmode {
Some tenor words and some more words
}
\score {
\new ChoirStaff <<
\new Staff = "tenorStaff"
<<
\context Staff <<
\mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
\context Voice = "tenorPart" { \voiceOne \tenorPart }
\context Voice = "leadPart" { \voiceTwo \leadPart }
>>
>>
\new Lyrics \with { alignAboveContext = #"tenorStaff" }
\lyricsto "tenorPart" \tenorWords
>>
}
The closest I've gotten is my messing with the outside-staff properties for the BarNumber
(uncommenting those three lines near the top), but this still ends up with an incorrect result
Setting an outside-staff-priority
for the LyricText
does fix the relative positioning, but the bar numbers still end up in the wrong spot:
Does anyone have any suggestions for how I could resolve this issue? Thanks!