%% 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
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\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 "/lilypond-2.24.4/input/regression/musicxml/14a-StaffDetails-LineChanges.xml"
\sourcefileline 0
\version "2.24.4"
% automatically converted by musicxml2ly from -
\pointAndClickOff

\header {
    texidoc = 
    "The number of staff lines can be
      modified by using the staff-lines child of the staff-details attribute.
      This can happen globally (the first staff has one line globally) or
      during the part at the beginning of a measure and even inside a measure
      (the second part has 5 lines initially, 4 at the beginning of the
      second measure, and 3 starting in the middle of the third
      measure)."
    }

\layout {
    \context { \Score
        autoBeaming = ##f
        }
    }
PartPOneVoiceOne =  \relative d'' {
    \key c \major \stopStaff \override Staff.StaffSymbol.line-count = #1
    \startStaff | % 1
    d1 | % 2
    d1 | % 3
    d1 }

PartPTwoVoiceOne =  \relative g' {
    \key c \major \stopStaff \override Staff.StaffSymbol.line-count = #5
    \startStaff | % 1
    g1 | % 2
    \stopStaff \override Staff.StaffSymbol.line-count = #4 \startStaff g2
    g2 | % 3
    g2 \stopStaff \override Staff.StaffSymbol.line-count = #2
    \startStaff g2 }


% The score definition
\score {
    <<
        
        \new StaffGroup
        <<
            \new Staff \with { \override StaffSymbol.line-count = #1 }
            
            <<
                \set Staff.instrumentName = "Part 1"
                
                \context Staff << 
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
                    >>
                >>
            \new Staff
            <<
                \set Staff.instrumentName = "Part 2"
                
                \context Staff << 
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context Voice = "PartPTwoVoiceOne" {  \PartPTwoVoiceOne }
                    >>
                >>
            
            >>
        
        >>
    \layout {}
    % To create MIDI output, uncomment the following line:
    %  \midi {\tempo 4 = 100 }
    }




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