]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertically-centered-common-lyrics.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / vertically-centered-common-lyrics.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 In a vocal piece where there are several (two, four or more) lines of
14 lyrics and common lyrics for all voices at some point, the common
15 lyrics may be made to appear vertically centered, as shown in the
16 following example:
17
18 "
19   doctitle = "Vertically centered common lyrics"
20 } % begin verbatim
21
22 dropLyrics = {
23   \override LyricText.extra-offset = #'(0 . -4.5)
24   \override LyricHyphen.extra-offset = #'(0 . -4.5)
25   \override LyricExtender.extra-offset = #'(0 . -4.5)
26   \override StanzaNumber.extra-offset = #'(0 . -4.5)
27 }
28
29 raiseLyrics = {
30   \revert LyricText.extra-offset
31   \revert LyricHyphen.extra-offset
32   \revert LyricExtender.extra-offset
33   \revert StanzaNumber.extra-offset
34 }
35
36 skipFour = \repeat unfold 4 { \skip 8 }
37
38 lyricsA = \lyricmode {
39   The first verse has
40   \dropLyrics
41   \set stanza = #"   All:"
42   the com -- mon __ words
43   \raiseLyrics
44   used in all four.
45 }
46
47 lyricsB = \lyricmode { In stan -- za two,   \skipFour al -- so ap -- pear. }
48
49 lyricsC = \lyricmode { By the third verse,  \skipFour are get -- ting dull. }
50
51 lyricsD = \lyricmode { Last stan -- za, and \skipFour get used once more. }
52
53 melody = \relative c' {
54   c4 d e f |
55   g f e8( e f) d |
56   c4 e d c |
57 }
58
59 \score {
60   <<
61     \new Voice = m \melody
62     \new Lyrics \lyricsto m \lyricsA
63     \new Lyrics \lyricsto m \lyricsB
64     \new Lyrics \lyricsto m \lyricsC
65     \new Lyrics \lyricsto m \lyricsD
66   >>
67 }