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