summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2016-03-14 21:45:25 +0100
committerDavid Kastrup <dak@gnu.org>2016-03-22 11:38:44 +0100
commit7291ef21ff869752b58d839bc4514a5d2c41db51 (patch)
treea81b1b9b33fc0dc5f2281162905c5388a1281264
parentdc75bffda220d1321689df595a976ab275debbba (diff)
arranging-separate-lyrics-on-a-single-line snippet: 2.18 override syntax
-rw-r--r--Documentation/snippets/new/arranging-separate-lyrics-on-a-single-line.ly65
1 files changed, 65 insertions, 0 deletions
diff --git a/Documentation/snippets/new/arranging-separate-lyrics-on-a-single-line.ly b/Documentation/snippets/new/arranging-separate-lyrics-on-a-single-line.ly
new file mode 100644
index 0000000000..16935f8d49
--- /dev/null
+++ b/Documentation/snippets/new/arranging-separate-lyrics-on-a-single-line.ly
@@ -0,0 +1,65 @@
+\version "2.18.0"
+
+\header {
+ lsrtags = "paper-and-layout, vocal-music"
+
+ texidoc = "
+Sometimes you may want to put lyrics for different performers on a
+single line: where there is rapidly alternating text, for example.
+This snippet shows how this can be done with @code{\\override
+VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance =
+##f}.
+
+"
+ doctitle = "Arranging separate lyrics on a single line"
+}
+\layout {
+ \context {
+ \Lyrics
+ \override VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance = ##f
+ }
+}
+
+aliceSings = \markup { \smallCaps "Alice" }
+eveSings = \markup { \smallCaps "Eve" }
+
+<<
+ \new Staff <<
+ \new Voice = "alice" {
+ f'4^\aliceSings g' r2 |
+ s1 |
+ f'4^\aliceSings g' r2 |
+ s1 | \break
+ % ...
+
+ \voiceOne
+ s2 a'8^\aliceSings a' b'4 |
+ \oneVoice
+ g'1
+ }
+ \new Voice = "eve" {
+ s1 |
+ a'2^\eveSings g' |
+ s1 |
+ a'2^\eveSings g'
+ % ...
+
+ \voiceTwo
+ f'4^\eveSings a'8 g' f'4 e' |
+ \oneVoice
+ s1
+ }
+ >>
+ \new Lyrics \lyricsto "alice" {
+ may -- be
+ sec -- ond
+ % ...
+ Shut up, you fool!
+ }
+ \new Lyrics \lyricsto "eve" {
+ that the
+ words are
+ % ...
+ …and then I was like–
+ }
+>>