\version "2.19.83"
% automatically converted by musicxml2ly from StaffErrorExample.musicxml
\pointAndClickOff

\header {
    encodingsoftware =  "MuseScore 3.1.0"
    encodingdate =  "2019-06-09"
    composer =  PT
    title =  StaffErrorExample
    }

PartPOneVoiceOne =  \relative g {
    \clef "bass" \key c \major \numericTimeSignature\time 4/4 | % 1
    g2 g2 \change Staff="1" | % 2
    e''2 e2 \bar "|."
    }

PartPOneVoiceFive =  \relative e {
    \clef "bass" \key c \major \numericTimeSignature\time 4/4 e2 e2
    \change Staff="1" c''2 c2 \bar "|."
    }


% The score definition
\score {
    <<

        \new PianoStaff
        <<
            \set PianoStaff.instrumentName = "Piano"
            \set PianoStaff.shortInstrumentName = "Pno."

            \context Staff = "1" <<
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                >> \context Staff = "2" <<
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                \context Voice = "PartPOneVoiceOne" {  \voiceOne \PartPOneVoiceOne }
                \context Voice = "PartPOneVoiceFive" {  \voiceTwo \PartPOneVoiceFive }
                >>
            >>

        >>
    \layout {}
    % To create MIDI output, uncomment the following line:
    %  \midi {\tempo 4 = 100 }
    }

