]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-drum-parts.ly
Change dsi to di in LSR address; update version
[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
25 drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }
26 drl = \drummode { bd4 sn8 bd bd4 << bd ss >>  bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
27 timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }
28
29 \score {
30   <<
31     \new DrumStaff \with {
32       drumStyleTable = #timbales-style
33       \override StaffSymbol.line-count = #2
34       \override BarLine.bar-extent = #'(-1 . 1)
35     } <<
36       \set Staff.instrumentName = #"timbales"
37       \timb
38     >>
39     \new DrumStaff <<
40       \set Staff.instrumentName = #"drums"
41       \new DrumVoice { \stemUp \drh }
42       \new DrumVoice { \stemDown \drl }
43     >>
44   >>
45   \layout { }
46   \midi {
47     \tempo 4 = 120
48   }
49 }