]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-drum-parts.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / Documentation / snippets / adding-drum-parts.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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.15.20"
8
9 \header {
10   lsrtags = "rhythms, percussion"
11
12 %% Translation of GIT committish: 6977ddc9a3b63ea810eaecb864269c7d847ccf98
13   texidoces = "
14 Mediante la utilización de las potentes herramientas preconfiguradas
15 como la función @code{\\drummode} y el contexto @code{DrumStaff}, la
16 introducción de partes para percusión es muy fácil: las percusiones se
17 sitúan en sus propias posiciones de pentagrama (con una clave
18 especial) y tienen las cabezas correspondientes al instrumento.  Es
19 posible añadir un símbolo adicional a la percusión o reducir el número
20 de líneas.
21
22 "
23   doctitlees = "Escritura de partes de percusión"
24
25
26 %% Translation of GIT committish: 3b125956b08d27ef39cd48bfa3a2f1e1bb2ae8b4
27   texidocfr = "
28 Grâce à la puissance des outils préconfigurés tels que la fonction
29 @code{\\drummode} et le contexte @code{DrumStaff}, la saisie de
30 parties pour percussions est extrêmement simplifiée@tie{}: chaque
31 composant d'une batterie trouve sa place sur une portée dédiée (avec une
32 clef spécifique) et les têtes de note sont spécifiques à chaque élément.
33 Il est également possible d'affecter un symbole particulier à chaque
34 élément, tout comme de restreindre le nombre de lignes de la portée.
35
36 "
37   doctitlefr = "Ajout de parties de batterie"
38
39
40   texidoc = "
41 Using the powerful pre-configured tools such as the @code{\\drummode}
42 function and the @code{DrumStaff} context, inputting drum parts is
43 quite easy: drums are placed at their own staff positions (with a
44 special clef symbol) and have note heads according to the drum.
45 Attaching an extra symbol to the drum or restricting the number of
46 lines is possible.
47
48 "
49   doctitle = "Adding drum parts"
50 } % begin verbatim
51
52 drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }
53 drl = \drummode { bd4 sn8 bd bd4 << bd ss >>  bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
54 timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }
55
56 \score {
57   <<
58     \new DrumStaff \with {
59       drumStyleTable = #timbales-style
60       \override StaffSymbol #'line-count = #2
61       \override BarLine #'bar-extent = #'(-1 . 1)
62     } <<
63       \set Staff.instrumentName = #"timbales"
64       \timb
65     >>
66     \new DrumStaff <<
67       \set Staff.instrumentName = #"drums"
68       \new DrumVoice { \stemUp \drh }
69       \new DrumVoice { \stemDown \drl }
70     >>
71   >>
72   \layout { }
73   \midi {
74     \context {
75       \Score
76       tempoWholesPerMinute = #(ly:make-moment 120 4)
77     }
78   }
79 }
80