]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/drums.ly
908514a56d390883756fc5cea57884dafd53d5f0
[lilypond.git] / input / regression / drums.ly
1
2 \header {
3    texidoc = "In drum notation, there is a special clef symbol, drums are
4    placed to their own staff positions and have note heads according to the 
5    drum, an extra symbol may be attached to the drum, and the number of lines 
6    may be restricted."
7 }
8
9
10 \version "2.9.16"
11
12 drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh \repeat "unfold" 5 {hhc8 hho hhc8 hh16 hh} hhc4 r4 r2 }
13 drl = \drummode {\repeat "unfold" 3 {bd4 sn8 bd bd4 << bd ss >> } bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
14 timb = \drummode { \repeat "unfold" 2 {timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb} }
15
16 \score {
17   \repeat "volta" 2 {
18     <<
19       \new DrumStaff \with {
20         drumStyleTable = #timbales-style
21         \override StaffSymbol #'line-count = #2
22         \override BarLine #'bar-size = #2
23       } <<
24         \set Staff.instrumentName = "timbales"
25         \timb
26       >>
27       \new DrumStaff <<
28         \set Staff.instrumentName = "drums"
29         \new DrumVoice {\stemUp \drh }
30         \new DrumVoice {\stemDown \drl }
31       >>
32     >>
33   }
34   \layout {}
35
36   %% broken:
37   
38   \midi {
39     \context {
40       \Score
41       tempoWholesPerMinute = #(ly:make-moment 120 4)
42       }
43     }
44
45
46 }
47
48