]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/es/user/percussion.itely
Merge branch 'lilypond/translation'
[lilypond.git] / Documentation / es / user / percussion.itely
1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: es -*-
2 @c This file is part of lilypond.tely
3 @ignore
4     Translation of GIT committish: 2881ea603b63e4e335dc1104b0c22c71f373b20d
5
6     When revising a translation, copy the HEAD committish of the
7     version that you are working on.  See TRANSLATION for details.
8 @end ignore
9
10 @c \version "2.11.61"
11
12 @node Percussion
13 @section Percussion
14
15 @menu
16 * Common notation for percussion::
17 @end menu
18
19 @node Common notation for percussion
20 @subsection Common notation for percussion
21
22 La notación rítmica se emplea primordialmente para la percusión y la
23 batería, pero también se puede utilizar para mostrar los valores
24 rítmicos una melodía.
25
26 @menu
27 * References for percussion::
28 * Basic percussion notation::
29 * Drum rolls::
30 * Pitched percussion::
31 * Percussion staves::
32 * Custom percussion staves::
33 * Ghost notes::
34 @end menu
35
36 @node References for percussion
37 @unnumberedsubsubsec References for percussion
38
39 @itemize
40
41 @item
42 La notación de algunas percusiones se puede hacer sobre una pauta de
43 ritmo; esto se estudia en @ref{Showing melody rhythms} y
44 @ref{Instantiating new staves}.
45
46 @item
47 La salida MIDI se trata en una sección aparte; véase @ref{Percussion
48 in MIDI}.
49
50 @end itemize
51
52 @seealso
53
54 Referencia de la notación:
55 @ref{Showing melody rhythms},
56 @ref{Instantiating new staves}.
57 @ref{Percussion in MIDI}.
58
59 Fragmentos de código:
60 @rlsr{Percussion}.
61
62
63 @node Basic percussion notation
64 @unnumberedsubsubsec Basic percussion notation
65
66 @cindex percusión
67 @cindex batería
68
69 Las notas de percusión se pueden escribir en el modo @code{\drummode},
70 que es similar al modo estándar para introducir notas.  La manera más
71 fácil de escribir notas de percusión es utilizar la instrucción
72 @code{\drums}, que crea el contexto y el modo de entrada apropiados
73 para percusión:
74
75 @lilypond[quote,verbatim]
76 \drums {
77   hihat4 hh bassdrum bd
78 }
79 @end lilypond
80
81 Esto es una abreviatura de
82
83 @lilypond[quote,verbatim]
84 \new DrumStaff {
85   \drummode {
86     hihat4 hh bassdrum bd
87   }
88 }
89 @end lilypond
90
91 Cada elemento de un set de percusión lleva un nombre completo y un
92 nombre abreviado, y los dos se pueden usar en la entrada.  La lista
93 completa de nombre de instrumentos de percusión se encuentra en
94 @ref{Percussion notes}.
95
96 Observe que la notación normal de las notas con altura determinada
97 (como @code{cis4}) en un contexto @code{DrumStaff} procuden un mensaje
98 de error.  Las claves de percusión se añaden automáticamente al
99 contexto @code{DrumStaff}, pero también se pueden usar otras claves.
100
101 Hay ciertos detalles respecto a cómo está contemplado el MIDI para los
102 instrumentos de percusión; para ver los detalles consulte
103 @ref{Percussion in MIDI}.
104
105 @seealso
106
107 Referencia de la notación:
108 @ref{Percussion in MIDI},
109 @ref{Percussion notes}.
110
111 Archivos de inicio:
112 @file{ly/@/drumpitch@/-init@/.ly}.
113
114 Fragmentos de código:
115 @rlsr{Percussion}.
116
117
118 @node Drum rolls
119 @unnumberedsubsubsec Drum rolls
120
121 Los redobles se indican mediante tres barras cruzadas en la plica.
122 Para las negras o notas más largas, las tres barras se muestran
123 explícitamente, las corcheas se presentan con dos barras cruzadas
124 (siendo la barra de corchea la tercera), y los redobles más breves que
125 las corcheas tienen una barra cruzada para complementar las barras
126 normales.  Esto se consigue mediante la notación de trémolo,
127 @code{:32}, véase @ref{Tremolo repeats}.  He aquí un ejemplo de
128 redobles de caja:
129
130 @lilypond[quote,verbatim]
131 \drums {
132   \time 2/4
133   sn16 sn8 sn16 sn8 sn8:32 ~
134   sn8 sn8 sn4:32 ~
135   sn4 sn8 sn16 sn16
136   sn4 r4
137 }
138 @end lilypond
139
140 Los golpes de baqueta se pueden indicar mediante la colocación de
141 @code{^"R"} o @code{^"L"} después de la nota.  La propiedad
142 @code{staff-padding} se puede sobreescribir para conseguir una línea
143 de base satisfactoria.
144
145 @lilypond[quote,verbatim]
146 \drums {
147   \repeat unfold 2 {
148     sn16 ^"L" sn^"R" sn^"L" sn^"L" sn^"R" sn^"L"  sn^"R" sn^"R"
149   }
150 }
151 @end lilypond
152
153 @seealso
154
155 Fragmentos de código:
156 @rlsr{Percussion}.
157
158
159 @node Pitched percussion
160 @unnumberedsubsubsec Pitched percussion
161
162 Ciertos instrumentos de percusión de altura determinada (p.ej.: el
163 xilófono, el vibráfono y los timbales) se escriben usando pentagramas
164 normales.  Esto se estudia en otras secciones del manual.
165
166 @seealso
167
168 @c TODO: possibly link to an alternate section of NR 3.5, if
169 @c "percussion in MIDI" gets a separate subsubsection for
170 @c pitched percussion sounds.  -gp
171
172 Referencia de la notación:
173 @ref{Percussion in MIDI}.
174
175 Fragmentos de código:
176 @rlsr{Percussion}.
177
178
179 @node Percussion staves
180 @unnumberedsubsubsec Percussion staves
181
182 @cindex percusión
183 @cindex batería
184
185 Una parte de percusión para más de un instrumento, normalmente utiliza
186 una pauta de varias líneas donde cada posición dentro de la pauta se
187 refiere a un elemento de percusión.  Para tipografiar la música, se
188 deben interpretar las notas dentro de los contextos
189 @rinternals{DrumStaff} y @rinternals{DrumVoice}.
190
191 @lilypond[quote,verbatim]
192 up = \drummode {
193   crashcymbal4 hihat8 halfopenhihat hh hh hh openhihat
194 }
195 down = \drummode {
196   bassdrum4 snare8 bd r bd sn4
197 }
198 \new DrumStaff <<
199   \new DrumVoice { \voiceOne \up }
200   \new DrumVoice { \voiceTwo \down }
201 >>
202 @end lilypond
203
204 El ejemplo anterior muestra una notación polifónica prolija.  La
205 notación polifónica abreviada, descrita en @rlearning{I'm hearing
206 Voices}, también se puede usar si las voces se instancian primero a
207 mano.  Por ejemplo,
208
209 @lilypond[quote,verbatim]
210 \new DrumStaff <<
211   \new DrumVoice = "1" { s1*2 }
212   \new DrumVoice = "2" { s1*2 }
213   \drummode {
214     bd4 sn4 bd4 sn4
215     << {
216       \repeat unfold 16 hh16
217     } \\ {
218       bd4 sn4 bd4 sn4
219     } >>
220   }
221 >>
222 @end lilypond
223
224 También existen otras posibilidades en lo referente a la disposición.
225 Para usarlas, establezca la propiedad @code{drumStyleTable} en el
226 contexto @rinternals{DrumVoice}.  Se han predefinido las siguientes
227 variables:
228
229 @table @code
230
231 @item drums-style
232 Es la opción por defecto.  Tipografía un típico set de percusión sobre
233 pentagrama:
234
235 @lilypond[quote,line-width=10.0\cm]
236 nam = \lyricmode {
237   cymc cyms cymr hh hhc hho hhho hhp
238   cb hc bd sn ss tomh tommh tomml toml tomfh tomfl }
239 mus = \drummode {
240   cymc cyms cymr hh hhc hho hhho hhp \break
241   cb hc bd sn ss tomh tommh tomml toml tomfh tomfl s16 }
242 \score {
243   << \new DrumStaff \with {
244        \remove Bar_engraver
245        \remove Time_signature_engraver
246        \override Stem #'transparent = ##t
247        \override Stem #'Y-extent-callback = ##f
248        \override VerticalAxisGroup #'minimum-Y-extent = #'(-4.0 . 5.0)
249      } \mus
250      \new Lyrics \nam
251   >>
252   \layout {
253     \context {
254       \Score
255       \override LyricText #'font-family = #'typewriter
256       \override BarNumber #'transparent =##T
257     }
258   }
259 }
260 @end lilypond
261
262 El esquema de percusión contempla seis tambores graves (toms)
263 distintos.  Cuando haya menos toms, sencillamente seleccione aquellos
264 que producen el resultado deseado, es decir, para tener toms en las
265 tres líneas centrales utilizará @code{tommh}, @code{tomml} y
266 @code{tomfh}.
267
268 @item timbales-style
269 Esto tipografía timbales en una pauta de dos líneas:
270
271 @lilypond[quote,ragged-right]
272 nam = \lyricmode { timh ssh timl ssl cb }
273 mus = \drummode { timh ssh timl ssl cb s16 }
274
275 <<
276   \new DrumStaff \with {
277     \remove Bar_engraver
278     \remove Time_signature_engraver
279     \override Stem #'transparent = ##t
280     \override Stem #'Y-extent-callback = ##f
281     \override StaffSymbol #'line-count = #2
282     \override StaffSymbol #'staff-space = #2
283     \override VerticalAxisGroup #'minimum-Y-extent = #'(-3.0 . 4.0)
284     drumStyleTable = #timbales-style
285   } \mus
286   \new Lyrics {
287     \override LyricText #'font-family = #'typewriter
288     \nam
289   }
290 >>
291 @end lilypond
292
293 @item congas-style
294 Esto tipografía congas en una pauta de dos líneas:
295
296 @lilypond[quote,ragged-right]
297 nam = \lyricmode { cgh cgho cghm ssh cgl cglo cglm ssl }
298 mus = \drummode { cgh cgho cghm ssh cgl cglo cglm ssl s16 }
299
300 <<
301   \new DrumStaff \with {
302     \remove Bar_engraver
303     \remove Time_signature_engraver
304     drumStyleTable = #congas-style
305     \override StaffSymbol #'line-count = #2
306
307     %% this sucks; it will lengthen stems.
308     \override StaffSymbol #'staff-space = #2
309     \override Stem #'transparent = ##t
310     \override Stem #'Y-extent-callback = ##f
311   } \mus
312   \new Lyrics {
313     \override LyricText #'font-family = #'typewriter
314     \nam
315   }
316 >>
317 @end lilypond
318
319 @item bongos-style
320 Esto tipografía bongos sobre una pauta de dos líneas:
321
322 @lilypond[quote,ragged-right]
323 nam = \lyricmode { boh boho bohm ssh bol bolo bolm ssl }
324 mus = \drummode { boh boho bohm ssh bol bolo bolm ssl s16 }
325
326 <<
327   \new DrumStaff \with {
328     \remove Bar_engraver
329     \remove Time_signature_engraver
330     \override StaffSymbol #'line-count = #2
331     drumStyleTable = #bongos-style
332
333     %% this sucks; it will lengthen stems.
334     \override StaffSymbol #'staff-space = #2
335     \override Stem #'transparent = ##t
336     \override Stem #'Y-extent-callback = ##f
337   } \mus
338   \new Lyrics {
339     \override LyricText #'font-family = #'typewriter
340     \nam
341   }
342 >>
343 @end lilypond
344
345 @item percussion-style
346 Para tipografiar toda clase de percusiones simples sobre pautas de una
347 línea:
348
349 @lilypond[quote,ragged-right]
350 nam = \lyricmode { tri trio trim gui guis guil cb cl tamb cab mar hc }
351 mus = \drummode { tri trio trim gui guis guil cb cl tamb cab mar hc s16 }
352
353 <<
354   \new DrumStaff \with{
355     \remove Bar_engraver
356     drumStyleTable = #percussion-style
357     \override StaffSymbol #'line-count = #1
358     \remove Time_signature_engraver
359     \override Stem #'transparent = ##t
360     \override Stem #'Y-extent-callback = ##f
361   } \mus
362   \new Lyrics {
363     \override LyricText #'font-family = #'typewriter
364     \nam
365   }
366 >>
367 @end lilypond
368 @end table
369
370
371 @node Custom percussion staves
372 @unnumberedsubsubsec Custom percussion staves
373
374 Si no le gusta ninguna de las listas predefinidas, puede definir su
375 propia lista al principio de su archivo
376
377 @lilypond[quote,verbatim]
378 #(define mydrums '(
379          (bassdrum     default   #f         -1)
380          (snare        default   #f         0)
381          (hihat        cross     #f         1)
382          (pedalhihat   xcircle   "stopped"  2)
383          (lowtom       diamond   #f         3)))
384 up = \drummode { hh8 hh hh hh hhp4 hhp }
385 down = \drummode { bd4 sn bd toml8 toml }
386
387 \new DrumStaff <<
388   \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
389   \new DrumVoice { \voiceOne \up }
390   \new DrumVoice { \voiceTwo \down }
391 >>
392 @end lilypond
393
394 @snippets
395
396 @c FIXME: MOVE ALL THESE TO LSR!  -gp
397
398 He aquí algunos ejemplos adicionales:
399
400 Dos bloques de madera, escritos con wbh (@emph{woodblock-high}, bloque
401 alto) y wbl (@emph{woodblock-low} bloque bajo)
402
403 @lilypond[quote,verbatim]
404 % These lines define the position of the woodblocks in the stave;
405 % if you like, you can change it or you can use special note heads
406 % for the woodblocks.
407 #(define mydrums '((hiwoodblock default #t  3)
408                    (lowoodblock default #t -2)))
409
410 woodstaff = {
411   % This defines a staff with only two lines.
412   % It also defines the positions of the two lines.
413   \override Staff.StaffSymbol #'line-positions = #'(-2 3)
414
415   % This is neccessary; if not entered, the barline wuld be too short!
416   \override Staff.BarLine #'bar-size = #3
417 }
418
419 \new DrumStaff {
420   \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
421
422   % with this you load your new drum style table
423   \woodstaff
424
425   \drummode {
426     \time 2/4
427     wbl8 wbl16 wbl wbh8-> wbl |
428     wbl8 wbl16 wbh-> ~ wbh wbl16 r8 |
429   }
430 }
431 @end lilypond
432
433 Observe que en este caso especial se debe alterar la longitud de la
434 línea divisoria con @code{\override Staff.BarLine #'bar-size #number}.
435 En caso contrario resulta demasiado corta.  También debe definir las
436 posiciones de las dos líneas del pentagrama.  Para más información
437 sobre estos delicados asuntos, consulte @ref{Staff symbol}.
438
439 Una pandereta, escrita mediante @q{tamb} (@emph{tambourine}:
440
441 @lilypond[quote,verbatim]
442 tambustaff = {
443   \override Staff.StaffSymbol #'line-positions = #'( 0 )
444   \override Staff.BarLine #'bar-size = #3
445   \set DrumStaff.instrumentName = "Tambourine"
446 }
447
448 \new DrumStaff {
449   \tambustaff
450   % broken
451   % \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
452
453   \drummode {
454     \time 6/8
455     \repeat "unfold" 2 { tamb8. tamb16 tamb8 tamb tamb tamb | }
456     tamb4. tamb8 tamb tamb |
457     % the trick with the scaled duration and the shorter rest
458     % is neccessary for the correct ending of the trill-span!
459     tamb2.*5/6 \startTrillSpan s8 \stopTrillSpan |
460   }
461 }
462 @end lilypond
463
464 Música para gong, introducida con @q{tt} (tam-tam):
465
466 @lilypond[quote,verbatim]
467 #(define mydrums '((tamtam default #t 0)))
468
469 tamtamstaff = {
470   \override Staff.StaffSymbol #'line-positions = #'( 0 )
471   \override Staff.BarLine #'bar-size = #3
472   \set DrumStaff.instrumentName = "Tamtam"
473 }
474
475 \new DrumStaff {
476   \tamtamstaff
477   \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
478
479   \drummode {
480     tt 1 \pp \laissezVibrer
481   }
482 }
483 @end lilypond
484
485 Dos campanas, introducidas con @q{cb} (@emph{cowbell}, cencerro) y
486 @q{rb} (@emph{ridebell}, campana normal)
487
488 @lilypond[quote,verbatim]
489 #(define mydrums '((ridebell default #t  3)
490                    (cowbell  default #t -2)))
491
492 bellstaff = {
493   \override DrumStaff.StaffSymbol #'line-positions = #'(-2 3)
494   \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
495   \override Staff.BarLine #'bar-size = #3
496   \set DrumStaff.instrumentName = "Different Bells"
497 }
498
499 \new DrumStaff {
500   \bellstaff
501   \drummode {
502     \time 2/4
503     \repeat "unfold" 2 { rb8 rb cb cb16 rb-> ~ |
504                          rb16 rb8 rb16 cb8 cb | }
505   }
506 }
507 @end lilypond
508
509 Aquí un breve ejemplo del maestro Stravinsky (procedende de la
510 @q{Historia del soldado})
511
512 @lilypond[quote,verbatim]
513 #(define mydrums '((bassdrum   default #t  4)
514                    (snare      default #t -4)
515                    (tambourine default #t  0)))
516
517 global = {
518   \time 3/8 s4.
519   \time 2/4 s2*2
520   \time 3/8 s4.
521   \time 2/4 s2
522 }
523
524 drumsA = {
525   \context DrumVoice <<
526     { \global }
527     { \drummode {
528         \autoBeamOff
529         \stemDown sn8 \stemUp tamb s8 |
530         sn4 \stemDown sn4 |
531         \stemUp tamb8 \stemDown sn8 \stemUp sn16 \stemDown sn \stemUp sn8 |
532         \stemDown sn8 \stemUp tamb s8 |
533         \stemUp sn4 s8 \stemUp tamb
534       }
535     }
536   >>
537 }
538
539 drumsB = {
540   \drummode {
541     s4 bd8 s2*2 s4 bd8 s4 bd8 s8
542   }
543 }
544
545 \layout {
546   indent = #40
547 }
548
549 \score {
550   \new StaffGroup <<
551     \new DrumStaff {
552       \set DrumStaff.instrumentName = \markup {
553         \column {
554           "Tambourine"
555           "et"
556           "caisse claire s. timbre"
557         }
558       }
559       \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
560       \drumsA
561     }
562
563    \new DrumStaff {
564      \set DrumStaff.instrumentName = "Grosse Caisse"
565      \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
566      \drumsB }
567   >>
568 }
569 @end lilypond
570
571 @seealso
572
573 Fragmentos de código:
574 @rlsr{Percussion}.
575
576 Referencia de funcionamiento interno:
577 @rinternals{DrumStaff},
578 @rinternals{DrumVoice}.
579
580
581 @c FIXME: check name -gp
582 @node Ghost notes
583 @unnumberedsubsubsec Ghost notes
584
585 Las notas fantasma para la batería e instrumentos de percusión se
586 pueden crear utilizando la instrucción @code{\parenthesize} detallada
587 en @ref{Parentheses}.  Sin embargo, el modo por defecto
588 @code{\drummode} no incluye el complemento grabador
589 @code{Parenthesis_engraver} que permite esto.
590
591 @lilypond[quote,ragged-right,verbatim,fragment]
592 \new DrumStaff \with {
593   \consists "Parenthesis_engraver"
594 } <<
595   \context DrumVoice  = "1"  { s1 *2 }
596   \context DrumVoice  = "2" { s1 *2 }
597   \drummode {
598     <<
599       {
600         hh8[ hh] <hh sn> hh16
601         < \parenthesize sn > hh
602         < \parenthesize sn > hh8 <hh sn> hh
603       } \\ {
604         bd4 r4 bd8 bd r8 bd
605       }
606     >>
607   }
608 >>
609 @end lilypond
610
611 @noindent
612 Observe, además, que debe añadir acordes (paréntesis en ángulo @code{<
613 >}) alrededor de cada una de las instrucciones @code{\parenthesize}.
614
615 @seealso
616
617 Fragmentos de código:
618 @rlsr{Percussion}.