Jump to content

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

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Span bars are drawn only between staff bar lines. By setting bar lines to transparent, they are shown only between systems.
Span bars are drawn only between staff bar lines. By setting bar lines to transparent, they are shown only between systems.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% see http://lsr.di.unimi.it/LSR/Item?id=320
%% see http://lsr.di.unimi.it/LSR/Item?id=320


Line 27: Line 27:
[[Category:Paper and layout]]
[[Category:Paper and layout]]
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Snippet]]

Latest revision as of 23:28, 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
  }
>>