]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/lyrics-old-spacing-settings.ly
Add the Instrument_name_engraver also to all group contexts
[lilypond.git] / Documentation / snippets / new / lyrics-old-spacing-settings.ly
1 \version "2.13.47"\r
2 \r
3 \header {\r
4   lsrtags = "vocal-music"\r
5   texidoc = "\r
6 The vertical spacing engine changed for version 2.14.  This can\r
7 cause lyrics to be spaced differently.  It is possible to set\r
8 properties for @code{Lyric} and @code{Staff} contexts to get the\r
9 spacing engine to behave as it did in version 2.12.\r
10 "\r
11 }\r
12 \r
13 global = {\r
14   \key d \major\r
15   \time 3/4\r
16 }\r
17 \r
18 sopMusic = \relative c' {\r
19   % VERSE ONE\r
20   fis4 fis fis | \break\r
21   fis4. e8 e4\r
22 }\r
23 \r
24 altoMusic = \relative c' {\r
25   % VERSE ONE\r
26   d4 d d |\r
27   d4. b8 b4 |\r
28 }\r
29 \r
30 tenorMusic = \relative c' {\r
31   a4 a a |\r
32   b4. g8 g4 |\r
33 }\r
34 \r
35 bassMusic = \relative c {\r
36   d4 d d |\r
37   g,4. g8 g4 |\r
38 }\r
39 \r
40 words = \lyricmode {\r
41   Great is Thy faith- ful- ness,\r
42 }\r
43 \r
44 \score {\r
45   \new ChoirStaff <<\r
46     \new Lyrics = sopranos\r
47     \new Staff = women <<\r
48       \new Voice = "sopranos" {\r
49         \voiceOne\r
50         \global \sopMusic\r
51       }\r
52       \new Voice = "altos" {\r
53         \voiceTwo\r
54         \global \altoMusic\r
55       }\r
56     >>\r
57     \new Lyrics = "altos"\r
58     \new Lyrics = "tenors"\r
59     \new Staff = men <<\r
60       \clef bass\r
61       \new Voice = "tenors" {\r
62         \voiceOne\r
63         \global \tenorMusic\r
64       }\r
65       \new Voice = "basses" {\r
66         \voiceTwo  \global \bassMusic\r
67       }\r
68     >>\r
69     \new Lyrics = basses\r
70     \context Lyrics = sopranos \lyricsto sopranos \words\r
71     \context Lyrics = altos \lyricsto altos \words\r
72     \context Lyrics = tenors \lyricsto tenors \words\r
73     \context Lyrics = basses \lyricsto basses \words\r
74   >>\r
75   \layout {\r
76     \context {\r
77       \Lyrics\r
78       \override VerticalAxisGroup #'staff-affinity = ##f\r
79       \override VerticalAxisGroup #'staff-staff-spacing =\r
80         #'((basic-distance . 0)\r
81            (minimum-distance . 2)\r
82            (padding . 2))\r
83     }\r
84     \context {\r
85       \Staff\r
86       \override VerticalAxisGroup #'staff-staff-spacing =\r
87         #'((basic-distance . 0)\r
88            (minimum-distance . 2)\r
89            (padding . 2))\r
90     }\r
91   }\r
92 }\r
93 \r