%% 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/43h-MultiStaff-Chords.xml"
\sourcefileline 0
\version "2.26.0"
% automatically converted by musicxml2ly from -
\pointAndClickOff

%% additional definitions required by the score:
D = \tweak Stem.direction #DOWN \etc
U = \tweak Stem.direction #UP \etc


\header {
  texidoc = "Various tests for cross-staff chords.

    Bars 1 to 3 hold cross-staff chords in voice 1 (with voice 2 being empty)
    with two notes per staff. If you count the notes from top to bottom, the
    MusicXML order of notes in the chords are [1 2 3 4 5 6], [3 4 1 2 5 6], and
    [5 6 3 4 1 2], respectively.

    Bar 1 has no <stem> and <beam> elements. Bar 2 uses a <beam> with up-stems,
    and bar 3 uses a <beam> with down-stems.

    Bar 4 tests cross-staff elements in voice 2 (with voice 1 being empty) in
    combination with cross-staff chords. The first and third chord are in staves
    1 and 2, while the second and fourth chord are in staves 2 and 3. The first
    two chords have a beam with up-stems, the last two chords have a beam with
    down-stems."
}
\layout {
  \context {
    \Staff
    printKeyCancellation = ##f
  }
  \context {
    \PianoStaff
    \consists "Span_stem_engraver"
  }
  \context {
    \Score
    autoBeaming = ##f
  }
}
PartPOneVoiceOne = \relative c'' {
  \clef "treble" \time 3/8 \key c \major \oneVoice \U <c g>8 \change Staff="3"
  \D <g, c,>8 \D <g c,>8 \change Staff="1" | % 1
  \U <c' g>8 [ \U <c g>8 \U <c g>8 ] | % 2
  \change Staff="3" \D <g, c,>8 [ \D <g c,>8 \D <g c,>8 ] \change Staff="1" | % 3
  \time 4/8 }

PartPOneVoiceTwo = \relative c'' {
  \clef "treble" \time 3/8 \key c \major s8*9 | % 3
  \time 4/8 \oneVoice \U <c g>8 [ \change Staff="2" \U <c, g>8 ] \D <e c>8 [
  \change Staff="3" \D <e, c>8 ] }

PartPOneVoiceOneD = \crossStaff \relative c'' {
  \clef "treble" \time 3/8 \key c \major s8 <c g>8 <c g>8 s4. | % 2
  \D <c g>8 <c g>8 <c g>8 | % 3
  \time 4/8 s4 \D <c g>8 }

PartPOneVoiceTwoU = \crossStaff \relative e' {
  \clef "treble" \time 3/8 \key c \major <e c>8 s4 | % 1
  <e c>8 \U <e c>8 <e c>8 s4. | % 3
  \time 4/8 <e c>8 }

PartPOneVoiceTwoS = \relative c' {
  \clef "treble" \time 3/8 \key c \major s8*9 | % 3
  \time 4/8 s2 }

PartPOneVoiceTwoD = \crossStaff \relative e' {
  \clef "treble" \time 3/8 \key c \major s8 <e c>8 <e c>8 s4. | % 2
  <e c>8 \D <e c>8 <e c>8 | % 3
  \time 4/8 s4. \D <c g>8 }

PartPOneVoiceThreeU = \crossStaff \relative g {
  \clef "bass" \time 3/8 \key c \major <g c,>8 s4 | % 1
  <g c,>8 <g c,>8 \U <g c,>8 s4. | % 3
  \time 4/8 s8 <e c>8 }

PartPOneVoiceThreeS = \relative c' {
  \clef "bass" \time 3/8 \key c \major s8*9 | % 3
  \time 4/8 s2 }


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




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