\version "2.18.2" \language "english" staffUp = \change Staff = "up" staffDown = \change Staff = "down" highVoice = \relative c''' { | \acciaccatura { d8 } 8 [ \staffDown \staffUp \acciaccatura { c''8 } \staffDown ] \staffUp | \acciaccatura { d''8 } 8 \staffDown \staffUp [ \acciaccatura { d'8 } ] | \acciaccatura { d'8 } 8 [ \staffDown \staffUp \acciaccatura { c''8 } \staffDown ] \staffUp | \acciaccatura { d''8 } 8 [ \staffDown \staffUp \staffDown ] \staffUp } lowVoice = \relative c'' { | \acciaccatura { s8 } s2 | s4 8 r | s2 * 2 } global = { \key f \major \time 2/4 \accidentalStyle piano } \score { \new PianoStaff << \new Staff = "up" { \global \highVoice } \new Staff = "down" { \global \lowVoice } >> \layout { } \midi { \tempo 4 = 160 } }