]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertically-centered-common-lyrics.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[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.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 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, these common
15 lyrics may be vertically centered regardingly, as shown in the
16 following example:
17
18 "
19   doctitle = "Vertically centered common lyrics"
20 } % begin verbatim
21
22 \include "english.ly"
23 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup #"brace240" }
24 rightbrace = \markup { \rotate #180 \leftbrace }
25
26 dropLyrics =
27 {
28     \override LyricText.extra-offset = #'(0 . -5)
29     \override LyricHyphen.extra-offset = #'(0 . -5)
30     \override LyricExtender.extra-offset = #'(0 . -5)
31 }
32
33 raiseLyrics =
34 {
35     \revert LyricText.extra-offset
36     \revert LyricHyphen.extra-offset
37     \revert LyricExtender.extra-offset
38 }
39
40 skipFour = \repeat unfold 4 { \skip 8 }
41
42 lyricsA = \lyricmode { The first verse has \dropLyrics the com -- mon
43 __ words \raiseLyrics used in all four. }
44 lyricsB = \lyricmode { In stan -- za two, \skipFour al -- so ap -- pear. }
45 lyricsC = \lyricmode { By the third verse, \skipFour are get -- ting dull. }
46 lyricsD = \lyricmode { Last stan -- za, and \skipFour get used once more. }
47
48 melody = \relative c' { c4 d e f g f e8( e f) d4 c e d c }
49
50 \score
51 {
52         <<
53                 \new Voice = m \melody
54                 \new Lyrics \lyricsto m \lyricsA
55                 \new Lyrics \lyricsto m \lyricsB
56                 \new Lyrics \lyricsto m \lyricsC
57                 \new Lyrics \lyricsto m \lyricsD
58         >>
59 }