]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertically-centered-common-lyrics.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / Documentation / snippets / vertically-centered-common-lyrics.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.29"
5
6 \header {
7   lsrtags = "vocal-music"
8
9   texidoc = "
10 In a vocal piece where there are several (two,four or more) lines of
11 lyrics, and common lyrics for all voices at some point, these common
12 lyrics may be vertically centered regardingly, as shown in the
13 following example:
14
15 "
16   doctitle = "Vertically centered common lyrics"
17 } % begin verbatim
18
19 \include "english.ly"
20 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup #"brace240" }
21 rightbrace = \markup { \rotate #180 \leftbrace }
22
23 dropLyrics =
24 {
25     \override LyricText #'extra-offset = #'(0 . -5)
26     \override LyricHyphen #'extra-offset = #'(0 . -5)
27     \override LyricExtender #'extra-offset = #'(0 . -5)
28 }
29
30 raiseLyrics =
31 {
32     \revert LyricText #'extra-offset
33     \revert LyricHyphen #'extra-offset
34     \revert LyricExtender #'extra-offset
35 }
36
37 skipFour = \repeat unfold 4 { \skip 8 }
38
39 lyricsA = \lyricmode { The first verse has \dropLyrics the com -- mon
40 __ words \raiseLyrics used in all four. }
41 lyricsB = \lyricmode { In stan -- za two, \skipFour al -- so ap -- pear. }
42 lyricsC = \lyricmode { By the third verse, \skipFour are get -- ting dull. }
43 lyricsD = \lyricmode { Last stan -- za, and \skipFour get used once more. }
44
45 melody = \relative c' { c4 d e f g f e8( e f) d4 c e d c }
46
47 \score
48 {
49         <<
50                 \new Voice = m \melody
51                 \new Lyrics \lyricsto m \lyricsA
52                 \new Lyrics \lyricsto m \lyricsB
53                 \new Lyrics \lyricsto m \lyricsC
54                 \new Lyrics \lyricsto m \lyricsD
55         >>
56 }
57