]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add regression test for issue 317
authorCarl Sorensen <c_sorensen@byu.edu>
Sun, 23 Jan 2011 04:52:45 +0000 (21:52 -0700)
committerCarl Sorensen <c_sorensen@byu.edu>
Sun, 23 Jan 2011 04:52:45 +0000 (21:52 -0700)
input/regression/lyrics-aligned-above-stay-close-to-staff.ly [new file with mode: 0644]

diff --git a/input/regression/lyrics-aligned-above-stay-close-to-staff.ly b/input/regression/lyrics-aligned-above-stay-close-to-staff.ly
new file mode 100644 (file)
index 0000000..e71d5a3
--- /dev/null
@@ -0,0 +1,45 @@
+\version "2.13.47"
+
+\header {
+  title = "Aligned-above lyrics should stay close to their staff"
+  texidoc = "Lyrics aligned above a context should stay close to that
+context when stretching.  The Bass I lyric line stays with the
+Bass staff.
+"
+}
+
+\paper { ragged-last-bottom = ##f }
+
+tune = \relative c { \repeat unfold 2 { c4( e) g2 | \break c1 }
+\bar "|."  }
+
+\score {
+
+  \context ChoirStaff <<
+
+    \new Staff = tenors <<
+      \clef "treble_8"
+      \new Voice = tenori { \voiceOne \tune }
+      \new Voice = tenorii { \voiceTwo \tune }
+    >>
+    \new Staff = basses <<
+      \clef "bass"
+      \new Voice = bassi { \voiceOne \tune }
+      \new Voice = bassii { \voiceTwo \tune }
+    >>
+
+    \new Lyrics \with {alignAboveContext=tenors} \lyricsto tenori {
+      Te -- nor one!  A -- _ bove!
+    }
+    \new Lyrics \with {alignBelowContext=tenors} \lyricsto tenorii {
+      Te -- nor two!  Be -- _ low!
+    }
+    \new Lyrics \with {alignAboveContext=basses}  \lyricsto bassi {
+      Bas -- ses one!  A -- _ bove!
+    }
+    \new Lyrics \with {alignBelowContext=basses} \lyricsto bassii {
+      Bas -- ses two!  Be -- _ low!
+    }
+  >>
+  \layout {}
+ }