]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/percussion/adding-drum-parts.ly
Clean up input/new, second step
[lilypond.git] / input / lsr / percussion / adding-drum-parts.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.35"
3
4 \header { texidoc = "
5 LilyPond makes drums input quite easy, with powerful pre-configured
6 tools such as the \\drummode function and the DrumStaff context:  drums
7 are placed to their own staff positions (with a special clef symbol)
8 and have note heads according to the drum. You can easily attach an
9 extra symbol to the drum, and restrict the number of lines.
10 " }
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   \midi {
37     \context {
38       \Score
39       tempoWholesPerMinute = #(ly:make-moment 120 4)
40       }
41     }
42
43
44 }
45