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