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