\version "2.14.2" DPatCrashU = \drummode { crashcymbal8 \repeat unfold 7 hh8 } DPatCrashD = \drummode { bd8 bd8 sn4 bd8 bd8 sn4 } DPatMainU = \drummode { \repeat unfold 8 hh8 } DPatMainD = \drummode { bd8 bd8 sn4 bd8 bd8 sn4 } DPatLastU = \drummode { \repeat unfold 8 hh8 } DPatLastD = \drummode { bd8 bd8 sn4 bd8 sn8 sn4 } DPatEndU = \drummode { crashcymbal1 } DPatEndD = \drummode { bd1 } drumVoiceU = \new DrumVoice { \stemUp \DPatCrashU \repeat unfold 2 \DPatMainU \DPatLastU \DPatEndU } drumVoiceD = \new DrumVoice { \stemDown \DPatCrashD \repeat unfold 2 \DPatMainD \DPatLastD \DPatEndD } \score { << \new DrumStaff { \set Staff.instrumentName = #"Drums" << \drumVoiceU \drumVoiceD >> } >> \layout {} \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 120 4) } } }