]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertically-centered-common-lyrics.ly
29cb90364b90d4e5cf66fd9f2cf96456e8476c5f
[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.14.2"
8
9 \header {
10   lsrtags = "vocal-music"
11
12 %% Translation of GIT committish: d5307870fe0ad47904daba73792c7e17b813737f
13   texidocfr = "
14 Il arrive, dans certaines partitions vocales, que quelques paroles
15 soient communes à tous les couplets.  Cette partie commune peut peut se
16 présenter verticalement centrée, comme dans l'exemple suivant.
17
18 "
19   doctitlefr = "Centrage vertical de paroles communes"
20
21   texidoc = "
22 In a vocal piece where there are several (two,four or more) lines of
23 lyrics, and common lyrics for all voices at some point, these common
24 lyrics may be vertically centered regardingly, as shown in the
25 following example:
26
27 "
28   doctitle = "Vertically centered common lyrics"
29 } % begin verbatim
30
31 \include "english.ly"
32 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup #"brace240" }
33 rightbrace = \markup { \rotate #180 \leftbrace }
34
35 dropLyrics =
36 {
37     \override LyricText #'extra-offset = #'(0 . -5)
38     \override LyricHyphen #'extra-offset = #'(0 . -5)
39     \override LyricExtender #'extra-offset = #'(0 . -5)
40 }
41
42 raiseLyrics =
43 {
44     \revert LyricText #'extra-offset
45     \revert LyricHyphen #'extra-offset
46     \revert LyricExtender #'extra-offset
47 }
48
49 skipFour = \repeat unfold 4 { \skip 8 }
50
51 lyricsA = \lyricmode { The first verse has \dropLyrics the com -- mon
52 __ words \raiseLyrics used in all four. }
53 lyricsB = \lyricmode { In stan -- za two, \skipFour al -- so ap -- pear. }
54 lyricsC = \lyricmode { By the third verse, \skipFour are get -- ting dull. }
55 lyricsD = \lyricmode { Last stan -- za, and \skipFour get used once more. }
56
57 melody = \relative c' { c4 d e f g f e8( e f) d4 c e d c }
58
59 \score
60 {
61         <<
62                 \new Voice = m \melody
63                 \new Lyrics \lyricsto m \lyricsA
64                 \new Lyrics \lyricsto m \lyricsB
65                 \new Lyrics \lyricsto m \lyricsC
66                 \new Lyrics \lyricsto m \lyricsD
67         >>
68 }
69