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