]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-drum-parts.ly
LSR: update.
[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 \\drummode function and the DrumStaff context:  drums
10 are placed to their own staff positions (with a special clef symbol)
11 and have note heads according to the drum. You can easily attach an
12 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
39   \midi {
40     \context {
41       \Score
42       tempoWholesPerMinute = #(ly:make-moment 120 4)
43       }
44     }
45
46
47 }
48