%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


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

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



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  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/repeats-headword.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: af28c5f89c915fdf795739a1e2dd437c726d7f61
  texidoces = "
Encabezamiento de repeticiones
"

  doctitlees = "Encabezamiento de repeticiones"
  categories = "Headword"

  texidoc = "
Repeats headword
"

  doctitle = "Repeats headword"
} % begin verbatim


% Beethoven, Op. 57
% Piano sonata 23 -
%   (Appassionata, "Dem Grafen Franz von Brunsvik gewidmet")
% Movt II, Andante con moto
% Measures 9 - 16

\include "english.ly"

\new PianoStaff <<
  \new Staff = RH {
    \clef treble
    \key df \major
    \time 2/4
    \set Score.currentBarNumber = #9

    \bar ".|:-|"
    \repeat volta 2 {
      \change Staff = LH \voiceOne <af ef c>4 <af gf c>8.. <af ef c>32 |
      <af f df>8. <df' af f>16 <c' af gf>8 <df' af f>8 |
      <af ef c>4 <af gf c>8.. <af ef c>32 |
      <af f df>8. \change Staff = RH f'16 f'^( ef' df'8)

      \change Staff = LH \voiceOne <af ef c>4 <af gf c>8.. <af ef c>32 |
      \change Staff = RH <af' df' af>8. <af' f' df'>16
        << { af'16( gf' f'8) } \\
           { <ef' c'>8 <df' af> } >> |
      ef'4\tweak height-limit 5 ^(
        \change Staff = LH \voiceOne <af ef c> |
      <df' f df>4.) r8
    }
  }

  \new Staff = LH {
    \clef bass
    \key df \major
    \time 2/4

    \repeat volta 2 {
      \voiceTwo <af, gf,>4 <af, ef,>8.. <af, gf,>32 |
      <af, f,>8. <af, df,>16 <af, ef,>8 <af, df,> |
      <af, gf,>4 <af, ef,>8.. <af, gf,>32 |
      << { \voiceTwo s4 gf8\tweak positions #'(-0.3 . -0.8) [ f] } \\
         { \voiceOne s8. \crossStaff {<af f>16 af s af8 } } \\
         { \voiceTwo <af, f,>8. <af, df,>16
             \once\shiftOn <af, c,>8 <af, df,> } >> |

      <af, gf,>4 <af, ef,>8.. <af, gf,>32 |
      \oneVoice <f f,>8.( <df df,>16 <ef ef,>8 <f f,>) |
      << { \voiceOne \crossStaff <gf bf>4 s |
           s2 } \\
         { \voiceTwo gf,4 af,( ~ |
           af,16.[ gf,32 f,16. ef,32]) df,8 r8 } >> |
    }
  }
>>

\layout {
  \context {
    \PianoStaff
    \consists "Span_stem_engraver"
  }
}



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