]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-drum-parts.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / adding-drum-parts.ly
1 %% Do not edit this file; it is auto-generated from LSR!
2 %% Tags: rhythms, percussion
3 \version "2.11.35"
4
5 \header { texidoc = "
6 LilyPond makes drums input quite easy, with powerful pre-configured
7 tools such as the \\drummode function and the DrumStaff context:  drums
8 are placed to their own staff positions (with a special clef symbol)
9 and have note heads according to the drum. You can easily attach an
10 extra symbol to the drum, and restrict the number of lines.
11 " }
12 % begin verbatim
13 drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh \repeat "unfold" 5 {hhc8 hho hhc8 hh16 hh} hhc4 r4 r2 }
14 drl = \drummode {\repeat "unfold" 3 {bd4 sn8 bd bd4 << bd ss >> } bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
15 timb = \drummode { \repeat "unfold" 2 {timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb} }
16
17 \score {
18   \repeat "volta" 2 {
19     <<
20       \new DrumStaff \with {
21         drumStyleTable = #timbales-style
22         \override StaffSymbol #'line-count = #2
23         \override BarLine #'bar-size = #2
24       } <<
25         \set Staff.instrumentName = "timbales"
26         \timb
27       >>
28       \new DrumStaff <<
29         \set Staff.instrumentName = "drums"
30         \new DrumVoice {\stemUp \drh }
31         \new DrumVoice {\stemDown \drl }
32       >>
33     >>
34   }
35   \layout {}
36
37   \midi {
38     \context {
39       \Score
40       tempoWholesPerMinute = #(ly:make-moment 120 4)
41       }
42     }
43
44
45 }
46