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