X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fvertically-centered-common-lyrics.ly;h=661b8fe2081dd7005a259fc5515d9e9a4c53797d;hb=7719b3925322a347391fc6c5520a1d763695560f;hp=e4705c1206d10e0e7f37ff7bd6a0b76ec25f67c5;hpb=0b55335aeca1de539bf1125b717e0c21bb6fa31b;p=lilypond.git diff --git a/Documentation/snippets/vertically-centered-common-lyrics.ly b/Documentation/snippets/vertically-centered-common-lyrics.ly index e4705c1206..661b8fe208 100644 --- a/Documentation/snippets/vertically-centered-common-lyrics.ly +++ b/Documentation/snippets/vertically-centered-common-lyrics.ly @@ -1,57 +1,67 @@ -%% Do not edit this file; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.di.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% %% This file is in the public domain. -\version "2.13.20" +\version "2.18.0" \header { lsrtags = "vocal-music" texidoc = " -In a vocal piece where there are several (two,four or more) lines of -lyrics, and common lyrics for all voices at some point, these common -lyrics may be vertically centered regardingly, as shown in the +In a vocal piece where there are several (two, four or more) lines of +lyrics and common lyrics for all voices at some point, the common +lyrics may be made to appear vertically centered, as shown in the following example: " doctitle = "Vertically centered common lyrics" } % begin verbatim -\include "english.ly" -leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup #"brace240" } -rightbrace = \markup { \rotate #180 \leftbrace } - -dropLyrics = -{ - \override LyricText #'extra-offset = #'(0 . -5) - \override LyricHyphen #'extra-offset = #'(0 . -5) - \override LyricExtender #'extra-offset = #'(0 . -5) +dropLyrics = { + \override LyricText.extra-offset = #'(0 . -4.5) + \override LyricHyphen.extra-offset = #'(0 . -4.5) + \override LyricExtender.extra-offset = #'(0 . -4.5) + \override StanzaNumber.extra-offset = #'(0 . -4.5) } -raiseLyrics = -{ - \revert LyricText #'extra-offset - \revert LyricHyphen #'extra-offset - \revert LyricExtender #'extra-offset +raiseLyrics = { + \revert LyricText.extra-offset + \revert LyricHyphen.extra-offset + \revert LyricExtender.extra-offset + \revert StanzaNumber.extra-offset } skipFour = \repeat unfold 4 { \skip 8 } -lyricsA = \lyricmode { The first verse has \dropLyrics the com -- mon -__ words \raiseLyrics used in all four. } -lyricsB = \lyricmode { In stan -- za two, \skipFour al -- so ap -- pear. } -lyricsC = \lyricmode { By the third verse, \skipFour are get -- ting dull. } +lyricsA = \lyricmode { + The first verse has + \dropLyrics + \set stanza = #" All:" + the com -- mon __ words + \raiseLyrics + used in all four. +} + +lyricsB = \lyricmode { In stan -- za two, \skipFour al -- so ap -- pear. } + +lyricsC = \lyricmode { By the third verse, \skipFour are get -- ting dull. } + lyricsD = \lyricmode { Last stan -- za, and \skipFour get used once more. } -melody = \relative c' { c4 d e f g f e8( e f) d4 c e d c } - -\score -{ - << - \new Voice = m \melody - \new Lyrics \lyricsto m \lyricsA - \new Lyrics \lyricsto m \lyricsB - \new Lyrics \lyricsto m \lyricsC - \new Lyrics \lyricsto m \lyricsD - >> +melody = \relative c' { + c4 d e f | + g f e8( e f) d | + c4 e d c | } +\score { + << + \new Voice = m \melody + \new Lyrics \lyricsto m \lyricsA + \new Lyrics \lyricsto m \lyricsB + \new Lyrics \lyricsto m \lyricsC + \new Lyrics \lyricsto m \lyricsD + >> +}