%% 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/45f-Repeats-InvalidEndings.xml"
\sourcefileline 0
\version "2.26.0"
% automatically converted by musicxml2ly from -
\pointAndClickOff

\header {
  texidoc = "A stress test with a combination of <repeat> and <ending> elements
    that don't make sense. The displayed result depends on the sanitizing
    possibilities of the application that handles the input.

    Bar 2 starts and ends with <ending number=\"1, 2, 3\">. Bar 3 starts and
    ends with <ending number=\"2\"> (where the right element is of type
    'discontinue'); there is no <repeat> element between bars 2 and 3. Finally,
    at the end of bar 4 there is a both a <repeat direction=\"backward\"> and a
    <ending type=\"stop\"> element.

    Bar 6 starts a repeat, bar 7 start and ends a prima volta bracket, but the
    corresponding repeat bar is between bars 8 and 9, followed by a seconda
    volta bracket starting and ending in bar 9.

    Another invalid ‘pair’ is <ending type=\"start\"> at the beginning of bar 12
    and <ending type=\"discontinue\"> at the end of bar 13."
}
\layout {
  \context {
    \Staff
    printKeyCancellation = ##f
  }
  \context {
    \Score
    doubleRepeatBarType = ":|.|:"
    autoBeaming = ##f
  }
}
PartPOneVoiceOne = \relative c' {
  \repeat volta 4 {
    \clef "treble" \time 4/4 \key c \major R1 | % 1
    \alternative {
      \volta 1,2,3 {
        R1 | % 2
      }
      \volta 2 {
        R1 | % 3
      }
    }
  }
  R1 | % 4
  R1 | % 5
  \repeat volta 2 {
    R1 | % 6
    \alternative {
      \volta 1 {
        R1 | % 7
        R1 | % 8
      }
      \volta 2 {
        R1 | % 9

        \barNumberCheck #10
      }
    }
  }
  R1 | % 10
  R1 | % 11
  R1 | % 12
  R1 | % 13
  \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
% ****************************************************************
