> On 20 Mar 2025, at 18:56, Knute Snortum <ksnor...@gmail.com> wrote:
> 
> On Thu, Mar 20, 2025 at 5:17 AM Richard Shann <rich...@rshann.plus.com 
> <mailto:rich...@rshann.plus.com>> wrote:
>> When using \bar ":|." in a piano staff the barline spans the two
>> staffs, but when using \bar ":|]" it does not - is there a way to fix
>> this?
> 
> When I ran your example source with 2.25.24, I got a thin line spanning the 
> staves.  Is this not what you see?  (attached picture) 
> 
> --
> Knute Snortum
> 
> <repeat-spanning-staves.png>

If you’re looking for a way to connect the staves with the thin-thick barlines 
instead of the thin line - those would need a custom barline to be defined with 
\defineBarLine

e.g.

8><8><8><8><8><8><8><8><8><8><8><

\version "2.24.4" % should also work at 2.25, but I don't have the development 
version installed, so I could not check; rendered result is from 2.24.4
\defineBarLine  ":|]-connected"  #'( #t #f " |.")

\score {
    \new PianoStaff <<
        \new Staff  <<
            \new Voice  {
                c'1 \bar ":|]-connected"
                c'1
            }
        >>
        \new Staff  <<
            \new Voice  {
                \clef bass
                c1 \bar ":|]-connected"
                c1
            }
        >>
    >>
}

8><8><8><8><8><8><8><8><8><8><8><


Which renders as

[1] https://lilypond.org/doc/v2.25/Documentation/notation/bar-lines

Reply via email to