Jump to content

Showing barlines (SpanBars) only between systems: Difference between revisions

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
No edit summary
Line 26: Line 26:
[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Paper and layout]]
[[Category:Paper and layout]]
[[Category:Staff notation]]
[[Category:Staff notation]][[Category:Snippet]]

Revision as of 23:00, 21 November 2025

Span bars are drawn only between staff bar lines. By setting bar lines to transparent, they are shown only between systems.

\version "2.24"

%% see http://lsr.di.unimi.it/LSR/Item?id=320

\relative c' \new StaffGroup <<
  \new Staff {
    a1
    \once \override Score.BarLine.transparent = ##t
    a1
    \once \override Score.SpanBar.transparent = ##t
    a1 a1
    \bar "|."
  }
  \lyricmode <<
    \new Lyrics { bla1 die bla }
    \new Lyrics { foo bar foo }
  >>
  \new Staff {
    f1 f1 f1 f1
  }
>>