]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-drum-parts.ly
Merge branch 'master' of ssh://jomand@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 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 note heads 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 hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }
16 drl = \drummode { bd4 sn8 bd bd4 << bd ss >>  bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
17 timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }
18
19 \score {
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   \layout {}
36   \midi {
37     \context {
38       \Score
39       tempoWholesPerMinute = #(ly:make-moment 120 4)
40     }
41   }
42 }