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