%% 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/41i-PartNameDisplay-Override.xml"
\sourcefileline 0
\version "2.24.4"
% automatically converted by musicxml2ly from -
\pointAndClickOff

\header {
    texidoc = 
    "MusicXML allows part-name and
            part-name-display in the score-part element. If part-name-display
            is given, it overrides the part-name for display.

            The first staff uses only part-name, while the second one (same
            part-name) overrides it with a custom text. Similar for the
            part-abbreviation used in subsequent staves.
      "
    }

\layout {
    \context { \Score
        autoBeaming = ##f
        }
    }
PartPOneVoiceOne =  \relative c' {
    | % 1
    c1 \break | % 2
    c1 }

PartPTwoVoiceOne =  \relative c' {
    | % 1
    c1 \break | % 2
    c1 }


% The score definition
\score {
    <<
        
        \new Staff
        <<
            \set Staff.instrumentName = "Part name"
            \set Staff.shortInstrumentName = "abbrv."
            
            \context Staff << 
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
                >>
            >>
        \new Staff
        <<
            \set Staff.instrumentName = "Overridden Part Name"
            \set Staff.shortInstrumentName = "Overr.abbrv."
            
            \context Staff << 
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                \context Voice = "PartPTwoVoiceOne" {  \PartPTwoVoiceOne }
                >>
            >>
        
        >>
    \layout {}
    % To create MIDI output, uncomment the following line:
    %  \midi {\tempo 4 = 100 }
    }




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