]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-drum-parts.ly
7ce432bcfc0324fc0bc340ceb9aff158e2f9a32d
[lilypond.git] / Documentation / snippets / adding-drum-parts.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "percussion, preparing-parts, really-simple, rhythms, specific-notation"
11
12   texidoc = "
13 Using the powerful pre-configured tools such as the @code{\\drummode}
14 function and the @code{DrumStaff} context, inputting drum parts is
15 quite easy: drums are placed at their own staff positions (with a
16 special clef symbol) and have note heads according to the drum.
17 Attaching an extra symbol to the drum or restricting the number of
18 lines is possible.
19
20 "
21   doctitle = "Adding drum parts"
22 } % begin verbatim
23
24 drh = \drummode {
25         cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh
26         hhc4 r4 r2
27       }
28 drl = \drummode {
29         bd4 sn8 bd bd4 << bd ss >>
30         bd8 tommh tommh bd toml toml bd tomfh16 tomfh
31       }
32 timb = \drummode {
33          timh4 ssh timl8 ssh r timh r4
34          ssh8 timl r4 cb8 cb
35        }
36
37 \score {
38   <<
39     \new DrumStaff \with {
40       drumStyleTable = #timbales-style
41       \override StaffSymbol.line-count = #2
42       \override BarLine.bar-extent = #'(-1 . 1)
43     } <<
44       \set Staff.instrumentName = #"timbales"
45       \timb
46     >>
47     \new DrumStaff <<
48       \set Staff.instrumentName = #"drums"
49       \new DrumVoice { \stemUp \drh }
50       \new DrumVoice { \stemDown \drl }
51     >>
52   >>
53   \layout { }
54   \midi {
55     \tempo 4 = 120
56   }
57 }