]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyrics-aligned-above-stay-close-to-staff.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / lyrics-aligned-above-stay-close-to-staff.ly
1 \version "2.14.0"
2
3 \header {
4   title = "Aligned-above lyrics should stay close to their staff"
5   texidoc = "Lyrics aligned above a context should stay close to that
6 context when stretching.  The Bass I lyric line stays with the
7 Bass staff.
8 "
9 }
10
11 \paper { ragged-last-bottom = ##f }
12
13 tune = \relative c { \repeat unfold 2 { c4( e) g2 | \break c1 }
14 \bar "|."  }
15
16 \score {
17
18   \context ChoirStaff <<
19
20     \new Staff = tenors <<
21       \clef "treble_8"
22       \new Voice = tenori { \voiceOne \tune }
23       \new Voice = tenorii { \voiceTwo \tune }
24     >>
25     \new Staff = basses <<
26       \clef "bass"
27       \new Voice = bassi { \voiceOne \tune }
28       \new Voice = bassii { \voiceTwo \tune }
29     >>
30
31     \new Lyrics \with {alignAboveContext=tenors} \lyricsto tenori {
32       Te -- nor one!  A -- _ bove!
33     }
34     \new Lyrics \with {alignBelowContext=tenors} \lyricsto tenorii {
35       Te -- nor two!  Be -- _ low!
36     }
37     \new Lyrics \with {alignAboveContext=basses}  \lyricsto bassi {
38       Bas -- ses one!  A -- _ bove!
39     }
40     \new Lyrics \with {alignBelowContext=basses} \lyricsto bassii {
41       Bas -- ses two!  Be -- _ low!
42     }
43   >>
44   \layout {}
45  }