%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/vertically-centered-common-lyrics.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Snippet Repository
%% (http://lsr.di.unimi.it).
%%
%% Make any changes in the LSR itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.23.13"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
歌曲では、複数行 (2 行, 4 行あるいはそれ以上) の歌詞があり、全てのボイスに@c
共通な歌詞はどこかにまとめられます。共通な歌詞は次の例のように、@c
縦方向に中央揃えされるように配置されます:
"
  doctitleja = "共通な歌詞を縦方向に中央揃えする"

%% Translation of GIT committish: a3fd5364fc4f247579da0ed2bfea887ab37285c6
  texidocfr = "
Il arrive, dans certaines partitions vocales, que quelques paroles
soient communes à tous les couplets. Cette partie commune peut peut se
présenter verticalement centrée, comme dans l'exemple suivant.
"

  doctitlefr = "Centrage vertical de paroles communes"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidoces = "
En una pieza vocal en la que hay varias líneas de letra (dos, cuatro o
más) y hay letras comunes a todas las voces en algún punto, se puede
hacer que las letras comunes se centren verticalmente como se muestra en el
siguiente ejemplo:

"
  doctitlees = "Letra común centrada verticalmente"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
A una peça vocal en la qual hi ha diverses línies de lletra (dues, quatre
o més) i hi ha lletres comunes a totes les veus en algun punt, es
pot fer que les lletres comunes se centrin verticalment com es
mostra a l'exemple següent:

"
  doctitleca = "Lletra comuna centrada verticalment"

  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, the common
lyrics may be made to appear vertically centered, as shown in the
following example:
"

  doctitle = "Vertically centered common lyrics"
} % begin verbatim


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
  \revert StanzaNumber.extra-offset
}

skipFour = \repeat unfold 4 { \skip 8 }

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) 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
  >>
}



% ****************************************************************
% end ly snippet
% ****************************************************************
