%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


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



\paper {
  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 "/home/gub/NewGub/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.22/input/regression/musicxml/43d-MultiStaff-StaffChange.xml"
\sourcefileline 0
\version "2.22.2"
% automatically converted by musicxml2ly from -
\pointAndClickOff

\header {
    texidoc = 
    "Staff changes in a piano staff. 
          The voice from the second staff has some notes/chords on the first 
          staff. The final two chords have some notes on the first, some on 
          the second staff."
    }

\layout {
    \context { \Score
        skipBars = ##t
        autoBeaming = ##f
        }
    }
PartPOneVoiceTwo =  \relative a {
    \clef "bass" \time 4/4 \key c \major | % 1
    a8 [ \change Staff="1" e'8 \change Staff="2" a,8 \change Staff="1"
    e'8 ] c'8 [ e,8 \change Staff="2" a,8 b'8 ] | % 2
    <c,, e g c>8 [ \change Staff="1" <c' e g>8 \change Staff="2" <c, e g
        c>8 \change Staff="2" <g' c e g>8 ] \change Staff="2" r2 \bar
    "|."
    }

PartPOneVoiceOne =  \relative c' {
    \clef "treble" \time 4/4 \key c \major s1 | % 2
    R1 \bar "|."
    }


% The score definition
\score {
    <<
        
        \new PianoStaff
        <<
            
            \context Staff = "1" << 
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
                >> \context Staff = "2" <<
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                \context Voice = "PartPOneVoiceTwo" {  \PartPOneVoiceTwo }
                >>
            >>
        
        >>
    \layout {}
    % To create MIDI output, uncomment the following line:
    %  \midi {\tempo 4 = 100 }
    }




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