]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/arranging-separate-lyrics-on-a-single-line.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / arranging-separate-lyrics-on-a-single-line.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "paper-and-layout, vocal-music"
11
12   texidoc = "
13 Sometimes you may want to put lyrics for different performers on a
14 single line: where there is rapidly alternating text, for example.
15 This snippet shows how this can be done with @code{\\override
16 VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance = ##f}.
17
18 "
19   doctitle = "Arranging separate lyrics on a single line"
20 } % begin verbatim
21
22 \layout {
23   \context {
24     \Lyrics
25     \override VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance = ##f
26   }
27 }
28
29 aliceSings = \markup { \smallCaps "Alice" }
30 eveSings = \markup { \smallCaps "Eve" }
31
32 <<
33   \new Staff <<
34     \new Voice = "alice" {
35       f'4^\aliceSings g' r2 |
36       s1 |
37       f'4^\aliceSings g' r2 |
38       s1 | \break
39       % ...
40
41       \voiceOne
42       s2 a'8^\aliceSings a' b'4 |
43       \oneVoice
44       g'1
45     }
46     \new Voice = "eve" {
47       s1 |
48       a'2^\eveSings g' |
49       s1 |
50       a'2^\eveSings g'
51       % ...
52
53       \voiceTwo
54       f'4^\eveSings a'8 g' f'4 e' |
55       \oneVoice
56       s1
57     }
58   >>
59   \new Lyrics \lyricsto "alice" {
60     may -- be
61     sec -- ond
62     % ...
63     Shut up, you fool!
64   }
65   \new Lyrics \lyricsto "eve" {
66     that the
67     words are
68     % ...
69     …and then I was like–
70   }
71 >>