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