]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyrics-bar.ly
release commit
[lilypond.git] / input / regression / lyrics-bar.ly
1 \version "2.1.30"
2
3 \header{
4 texidoc="
5 Adding a @code{Bar_engraver} to the Lyrics context makes sure that
6 lyrics do not collide with barlines.
7 "
8 }
9
10 \score {
11         \context StaffGroup <<
12         \notes \context Staff {
13                 b1 \bar "|:" b1 \bar ":|"
14         }
15         \lyrics <<
16                 \context LyricsWithBars {
17 %                       thisContextHasBarEngraver1  added
18                         ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1.  Here.
19                 }
20                 \context Lyrics {
21                         this4 one has no BarEngraverAddedToContext1
22                 }
23         >>
24         \notes \new Staff { b1 b1 }
25         >>
26         \paper {
27                 raggedright = ##t
28                 \context {
29                         \ScoreContext
30                         \accepts "LyricsWithBars"
31                 }
32                 \context {
33                         \LyricsContext
34                         \consists "Bar_engraver"
35                         \name "LyricsWithBars"
36                 }
37         }
38 }
39