]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-drum-parts.ly
Doc: Update LSR.
[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.16"
5
6 \header {
7   lsrtags = "rhythms, percussion"
8
9 %% Translation of GIT committish: d2119a9e5e951c6ae850322f41444ac98d1ed492
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 %% Translation of GIT committish: 9a65042d49324f2e3dff18c4b0858def81232eea
23   texidocfr = "
24 Grâce à la puissance des outils préconfigurés tels que la fonction
25 @code{\\drummode} et le contexte @code{DrumStaff}, la saisie de
26 parties pour percussions est extrêmement simplifiée : chaque composant
27 d'une batterie trouve sa place sur une portée dédiée (avec une clef
28 spécifique) et les têtes de note sont spécifiques à chaque élément.
29 Il est également possible d'affecter un symbole particulier à chaque
30 élément, tout comme de restreindre le nombre de lignes de la portée.
31
32 "
33
34   doctitlefr = "Ajout de parties de batterie"
35
36
37   texidoc = "
38 Using the powerful pre-configured tools such as the @code{\\drummode}
39 function and the @code{DrumStaff} context, inputting drum parts is
40 quite easy: drums are placed at their own staff positions (with a
41 special clef symbol) and have note heads according to the drum.
42 Attaching an extra symbol to the drum or restricting the number of
43 lines is possible.
44
45 "
46   doctitle = "Adding drum parts"
47 } % begin verbatim
48
49 drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }
50 drl = \drummode { bd4 sn8 bd bd4 << bd ss >>  bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
51 timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }
52
53 \score {
54   <<
55     \new DrumStaff \with {
56       drumStyleTable = #timbales-style
57       \override StaffSymbol #'line-count = #2
58       \override BarLine #'bar-size = #2
59     } <<
60       \set Staff.instrumentName = #"timbales"
61       \timb
62     >>
63     \new DrumStaff <<
64       \set Staff.instrumentName = #"drums"
65       \new DrumVoice { \stemUp \drh }
66       \new DrumVoice { \stemDown \drl }
67     >>
68   >>
69   \layout { }
70   \midi {
71     \context {
72       \Score
73       tempoWholesPerMinute = #(ly:make-moment 120 4)
74     }
75   }
76 }
77