]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-drum-parts.ly
Merge branch 'dev/texi2html' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond into...
[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
8   texidoc = "
9 Using the powerful pre-configured tools such as the @code{\\drummode}
10 function and the @code{DrumStaff} context, inputting drum parts is
11 quite easy: drums are placed at their own staff positions (with a
12 special clef symbol) and have note heads according to the drum.
13 Attaching an extra symbol to the drum or restricting the number of
14 lines is possible. 
15
16 "
17   doctitle = "Adding drum parts"
18 } % begin verbatim
19 drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }
20 drl = \drummode { bd4 sn8 bd bd4 << bd ss >>  bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
21 timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }
22
23 \score {
24   <<
25     \new DrumStaff \with {
26       drumStyleTable = #timbales-style
27       \override StaffSymbol #'line-count = #2
28       \override BarLine #'bar-size = #2
29     } <<
30       \set Staff.instrumentName = "timbales"
31       \timb
32     >>
33     \new DrumStaff <<
34       \set Staff.instrumentName = "drums"
35       \new DrumVoice { \stemUp \drh }
36       \new DrumVoice { \stemDown \drl }
37     >>
38   >>
39   \layout {}
40   \midi {
41     \context {
42       \Score
43       tempoWholesPerMinute = #(ly:make-moment 120 4)
44     }
45   }
46 }