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