"\override BarLine" for a PianoStaff
I frequently use lilypond for short theory
examples for teaching, and for such examples
I often use the code:
\override BarLine.transparent = ##t
to make bar lines disappear. This has always worked
for me for a single staff, but when I just tried
to do this with a grand staff in the excerpt
below, the bar lines only disappeared "on the staves"
but still appeared "between the staves".
Running the excerpt below will illustrate this.
How do I make the entire bar lines transparent
for a grand staff?
Thank you for your help.
\version "2.24.1"
\language "english"
\paper{ indent = 0\cm }
\score {
\new PianoStaff
<<
\new Staff \with { \remove "Time_signature_engraver" }
{
\time 4/4
\clef "treble"
s1 s1 s1 s1 e'1 b'1 fs'' cs''' gs'''
}
\new Staff \with { \remove "Time_signature_engraver" }
{
\time 4/4
\clef "bass"
c,1 g,1 d1 a1 e'1 s1 s1 s1 s1
}
>>
\layout {
\context {
\Score
\override BarLine.transparent = ##t
}
}
} % score