lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

final bar line only to have a SpanBar


From: Klaus Föhl
Subject: final bar line only to have a SpanBar
Date: Thu, 12 Jan 2012 13:57:29 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hello,

When using ChoirStaff, bar lines do not span which is intentional.
Short example:

\version "2.12.3"
\new ChoirStaff <<
  \new Staff { c'1 c'1 \bar "|." }
  \new Lyrics \lyricmode { some Text }
  \new Staff { c'1 c'1 } >>

But one often finds that the final bar line (only) is spanning all staff lines.
I have come up with the following:

\version "2.12.3"
\new StaffGroup <<
  \new Staff { \override Staff.BarLine #'allow-span-bar = ##f
             c'1 c'1
             \override Staff.BarLine #'allow-span-bar = ##t
             \bar "|."
             }
  \new Lyrics \lyricmode { some Text }
  \new Staff { c'1 c'1 } >>

While this seems to work, it is somewhat non-intuitive using StaffGroup
instead of ChoirStaff. Is there a better way of achieving this?

And is it worth having a snippet for this? There is a snippet for the
Mensurstrich layout, but this does not help for standard ChoirStaff.

Best regards

Klaus

P.S. "You seem to be top-posting. Don't do that." due to Lilypond code...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]