X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fvertically-centered-common-lyrics.ly;h=661b8fe2081dd7005a259fc5515d9e9a4c53797d;hb=4f2ce0594646a96bdecf72750c64918129cfeb25;hp=7c59cd3b1620509a15a17fff8bda7de53fcab57e;hpb=56145dfed8f19bb34459d5b40cab388776d2ec49;p=lilypond.git diff --git a/Documentation/snippets/vertically-centered-common-lyrics.ly b/Documentation/snippets/vertically-centered-common-lyrics.ly index 7c59cd3b16..661b8fe208 100644 --- a/Documentation/snippets/vertically-centered-common-lyrics.ly +++ b/Documentation/snippets/vertically-centered-common-lyrics.ly @@ -1,59 +1,67 @@ %% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% 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.17.6" +\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 + >> }