Hi Valentin,

> alternatively consist Span_bar_engraver to ChoirStaff, default 
> Staff.BarLine.allow-span-bar = ##f and override Staff.BarLine.allow-span-bar 
> = 
> ##t before the barline you want the span (this needs to be done in all staves 
> where a span should descend from, so you do not actually need this in the 
> bottom staff). Or even override the value on ChoirStaff level.
> 
> In fact you could also do it say dependent on the type:

Nice! I do love really elegant solutions.  :)

In the OP’s case, I think only the final bar is desired, so

%%%
\new ChoirStaff <<
  \new Staff
  \relative c'' {
    \time 4/4
    c4 d e f c d e f c d e f \bar "|."
  }
  \new Staff
  \relative c' {
    g4 a b c g a b c g a b c \bar "|."
  }
>>

\layout {
  \context {
    \ChoirStaff
    \consists Span_bar_engraver
    \override BarLine.allow-span-bar =
    #(lambda (grob)
       (member (ly:grob-property grob 'glyph) '("|.")))
  }
}
%%%

should do it [though, of course, your original snippet shows how to extend the 
inclusion set, in case the OP wants to].

Well done!
Kieren.
__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to