%% 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 "/lilypond-2.26.0/input/regression/musicxml/45d-Repeats-MultipleEndings.xml"
\sourcefileline 0
\version "2.26.0"
% automatically converted by musicxml2ly from -
\pointAndClickOff

\header {
  texidoc = "Multiple alternative endings. The first alternative starts and ends
    at bar 2; the second continues until bar 5, the third, fifth, and seventh
    until bar 9, the fourth and sixth until bar 10, and the eighth is
    discontinued after one bar.

    In this test, the <ending> elements don't contain text except the one in
    bar 10, which holds ‘Foo’."
}
\layout {
  \context {
    \Staff
    printKeyCancellation = ##f
  }
  \context {
    \Score
    doubleRepeatBarType = ":|.|:"
    autoBeaming = ##f
  }
}
PartPOneVoiceOne = \relative c' {
  \repeat volta 8 {
    \clef "treble" \time 4/4 \key c \major R1 | % 1
    \alternative {
      \volta 1 {
        R1 | % 2
      }
      \volta 2 {
        R1 | % 3
        R1 | % 4
        R1 | % 5
      }
      \volta 3,5,7 {
        R1 | % 6
        R1 | % 7
        R1 | % 8
        R1 | % 9

        \barNumberCheck #10
      }
      \volta 4,6 {
        \once \override Score.VoltaBracket.text = \markup Foo R1 | % 10
      }
      \volta 8 {
        R1 | % 11
      }
    }
  }
  R1 \bar "|."
}


% The score definition
\score {
  <<
    \new Staff = "P1" <<
      \context Staff <<
        \override Staff.BarLine.allow-span-bar = ##f
        \mergeDifferentlyDottedOn
        \mergeDifferentlyHeadedOn
        \context Voice = "PartPOneVoiceOne" {
          \PartPOneVoiceOne
        }
      >>
    >>
  >>
  \layout {}
  % To create MIDI output, uncomment the following line:
  % \midi { \tempo 4 = 100 }
}




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