%% 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/32e-Arpeggios-Cross.xml"
\sourcefileline 0
\version "2.26.0"
% automatically converted by musicxml2ly from -
\pointAndClickOff

%% additional definitions required by the score:
% For cross-voice arpeggios.
arpeggioX =
  \once \set Staff.connectArpeggios = ##t
arpeggioArrowUpX =
  \once \override Staff.Arpeggio.arpeggio-direction = #UP
arpeggioArrowDownX =
  \once \override Staff.Arpeggio.arpeggio-direction = #DOWN
arpeggioBracketX =
  \once \override Staff.Arpeggio.stencil =
    #ly:chord-bracket::print

% For cross-staff arpeggios.
arpeggioXX =
  \once \set PianoStaff.connectArpeggios = ##t
arpeggioArrowUpXX =
  \once \override PianoStaff.Arpeggio.arpeggio-direction = #UP
arpeggioArrowDownXX =
  \once \override PianoStaff.Arpeggio.arpeggio-direction = #DOWN
arpeggioBracketXX =
  \once \override PianoStaff.Arpeggio.stencil =
    #ly:chord-bracket::print


\header {
  texidoc = "Cross-voice and cross-staff arpeggios.

    In the first bar, the <arpeggiate> elements all have the same ‘number’
    attribute value, causing cross-staff arpeggios.

    In the second bar, the elements in the two staves have different ‘number’
    attribute values, causing the arpeggios to be connected staff-wise.

    In the third bar there are different ‘number’ attribute values for each
    voice, causing arpeggios to be connected voice-wise."
}
\layout {
  \context {
    \Staff
    printKeyCancellation = ##f
    \consists "Span_arpeggio_engraver"
  }
  \context {
    \Score
    autoBeaming = ##f
  }
}
PartPOneVoiceOne = \relative c'' {
  \clef "treble" \numericTimeSignature \time 4/4 \key c \major \arpeggioX <c e>2
  \arpeggio \arpeggioXX <c e>2 \arpeggio | % 1
  \arpeggioX <c e>2 \arpeggio \arpeggioX <c e>2 \arpeggio | % 2
  <c e>2 \arpeggio <c e>2 \arpeggio \bar "|."
}

PartPOneVoiceTwo = \relative d' {
  \clef "treble" \numericTimeSignature \time 4/4 \key c \major \arpeggioX <d f>2
  \arpeggio \arpeggioXX <d f>2 \arpeggio | % 1
  \arpeggioX <d f>2 \arpeggio \arpeggioX <d f>2 \arpeggio | % 2
  <d f>2 \arpeggio <d f>2 \arpeggio \bar "|."
}

PartPOneVoiceThree = \relative g {
  \clef "treble" \numericTimeSignature \time 4/4 \key c \major r2 \arpeggioXX <g
    b>2 \arpeggio | % 1
  r2 \arpeggioX <g b>2 \arpeggio | % 2
  r2 <g b>2 \arpeggio \bar "|."
}


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




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