Displaying bar lines on lyrics: Difference between revisions
Appearance
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 38: | Line 38: | ||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Specific notation]] | [[Category:Specific notation]] | ||
[[Category:Contexts and engravers]] | [[Category:Contexts and engravers]][[Category:Snippet]] | ||
Revision as of 22:51, 21 November 2025
You can move Bar_engraver and Span_bar_engraver to a different engraving context, if you want, for example, bar lines on lyrics.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=90
\score {
\relative c' \context ChoirStaff <<
\new Staff { c1 c1 c1 }
\lyricmode <<
\new Lyrics { bla1 die bla }
>>
\new Staff { c1 c1 c1 }
>>
\layout {
raggedright = ##t
\context {
\Lyrics
\consists "Bar_engraver"
\consists "Separating_line_group_engraver"
\override VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance = #4.2
\override LyricText.Y-offset = #-0.7
\override BarLine.bar-extent = #'(-2 . 2)
}
\context{
\ChoirStaff
\remove "Span_bar_engraver"
}
\context {
\Staff
\remove "Bar_engraver"
}
}
}