1 % tests drum notation and midi-drums.
2 % see ly/drumpitch.ly for list of instruments and paper-kits.
3 % scm/midi.scm for list of midi-drumkits.
5 \include "drumpitch.ly";
9 drh
= \notes { cymc
4.^"crash" hhc
16^"h.h." hh
\repeat "unfold" 5 {hhc
8 hho hhc
8 hh
16 hh
} hhc
4 r
4 r
2 }
10 drl
= \notes {\repeat "unfold" 3 {bd
4 sn
8 bd bd
4 <bd ss
>} bd
8 tommh tommh bd toml toml bd tomfh
16 tomfh
}
11 timb
= \notes \repeat "unfold" 2 {timh
4 ssh timl
8 ssh r timh r
4 ssh
8 timl r
4 cb
8 cb
}
13 \score { \repeat "volta" 2
15 \context TwoLineStaff
=timbst
\notes <
16 \property Staff
.instrument
="timbales"
18 \apply #(drums-
>paper
'timbales
) \timb
20 \context Staff
=drumst
\notes <
21 \property Staff
.instrument
="drums"
23 \apply #(drums-
>paper
'drums
) <
24 \context Voice
=voa
{\stemUp \drh }
25 \context Voice
=vob
{\stemDown \drl }
32 \consists Instrument
_name
_engraver;
33 Script
\override #'padding
= #0.5
39 \consists Instrument
_name
_engraver;
40 StaffSymbol
\override #'line-count
= #2;
41 BarLine
\override #'bar-size
= #2;
45 \accepts TwoLineStaff;
50 \score { \repeat "unfold" 2
51 \context Staff
\notes <
52 \property Staff
.instrument
="drums"
57 \midi{ \tempo 4=120;
}