]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-drum-parts.ly
Imported Upstream version 2.14.2
[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.14.0"
8
9 \header {
10   lsrtags = "rhythms, percussion"
11
12 %% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
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: 9a65042d49324f2e3dff18c4b0858def81232eea
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 : chaque composant
31 d'une batterie trouve sa place sur une portée dédiée (avec une clef
32 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
38   doctitlefr = "Ajout de parties de batterie"
39
40
41   texidoc = "
42 Using the powerful pre-configured tools such as the @code{\\drummode}
43 function and the @code{DrumStaff} context, inputting drum parts is
44 quite easy: drums are placed at their own staff positions (with a
45 special clef symbol) and have note heads according to the drum.
46 Attaching an extra symbol to the drum or restricting the number of
47 lines is possible.
48
49 "
50   doctitle = "Adding drum parts"
51 } % begin verbatim
52
53 drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }
54 drl = \drummode { bd4 sn8 bd bd4 << bd ss >>  bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
55 timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }
56
57 \score {
58   <<
59     \new DrumStaff \with {
60       drumStyleTable = #timbales-style
61       \override StaffSymbol #'line-count = #2
62       \override BarLine #'bar-extent = #'(-1 . 1)
63     } <<
64       \set Staff.instrumentName = #"timbales"
65       \timb
66     >>
67     \new DrumStaff <<
68       \set Staff.instrumentName = #"drums"
69       \new DrumVoice { \stemUp \drh }
70       \new DrumVoice { \stemDown \drl }
71     >>
72   >>
73   \layout { }
74   \midi {
75     \context {
76       \Score
77       tempoWholesPerMinute = #(ly:make-moment 120 4)
78     }
79   }
80 }
81