1 @c -*- coding: utf-8; mode: texinfo; -*-
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. See TRANSLATION for details.
15 * Common notation for percussion::
18 @node Common notation for percussion
19 @subsection Common notation for percussion
21 Rhythmic music is primarily used for percussion and drum notation, but it can
22 also be used to show the rhythms of melodies.
25 * References for percussion::
26 * Basic percussion notation::
28 * Pitched percussion::
30 * Custom percussion staves::
34 @node References for percussion
35 @unnumberedsubsubsec References for percussion
41 @item Some percussion may be notated on a rhythmic staff; this is
42 discussed in @ref{Showing melody rhythms}, and
43 @ref{Instantiating new staves}.
45 @item MIDI output is discussed in a separate section; please see
46 @ref{Percussion in MIDI}.
53 @ref{Showing melody rhythms},
54 @ref{Instantiating new staves}.
55 @ref{Percussion in MIDI}.
57 Snippets: @rlsr{Percussion}.
60 @node Basic percussion notation
61 @unnumberedsubsubsec Basic percussion notation
66 Percussion notes may be entered in @code{\drummode} mode, which is
67 similar to the standard mode for entering notes. The simplest way
68 to enter percussion notes is to use the @code{\drums} command,
69 which creates the correct context and entry mode for percussion:
71 @lilypond[quote,verbatim]
77 This is shorthand for:
79 @lilypond[quote,verbatim]
87 Each piece of percussion has a full name and an abbreviated name,
88 and both can be used in input files. The full list of percussion
89 note names may be found in @ref{Percussion notes}.
91 Note that the normal notation of pitches (such as @code{cis4}) in
92 a @code{DrumStaff} context will cause an error message.
93 Percussion clefs are added automatically to a @code{DrumStaff}
94 contex, but other clefs may also be used.
96 There are a few issues concerning MIDI support for percussion
97 instruments; for details please see @ref{Percussion in MIDI}.
101 Notation Reference: @ref{Percussion in MIDI}, @ref{Percussion notes}.
103 File: @file{ly/@/drumpitch@/-init@/.ly}
105 Snippets: @rlsr{Percussion}.
109 @unnumberedsubsubsec Drum rolls
111 Drum rolls are indicated with three slashes across the stem. For
112 quarter notes or longer the three slashes are shown explicitly,
113 eighth notes are shown with two slashes (the beam being the
114 third), and drum rolls shorter than eighths have one stem slash to
115 supplement the beams. This is achieved with the tremolo notation,
116 @code{:32}, as described in @ref{Tremolo repeats}. Here is an
117 example of some snare rolls:
119 @lilypond[quote,verbatim]
122 sn16 sn8 sn16 sn8 sn8:32 ~
129 Sticking can be indicated by placing @code{^"R"} or @code{^"L"}
130 after the note. The @code{staff-padding} property may be
131 overridden to achieve a pleasing baseline.
133 @lilypond[quote,verbatim]
136 sn16 ^"L" sn^"R" sn^"L" sn^"L" sn^"R" sn^"L" sn^"R" sn^"R"
143 Snippets: @rlsr{Percussion}.
146 @node Pitched percussion
147 @unnumberedsubsubsec Pitched percussion
149 Certain pitched percussion instruments (e.g. xylophone,
150 vibraphone, and timpani) are written using normal staves.
151 This is covered in other sections of the manual.
155 @c TODO: possibly link to an alternate section of NR 3.5, if
156 @c "percussion in MIDI" gets a separate subsubsection for
157 @c pitched percussion sounds. -gp
158 Notation Reference: @ref{Percussion in MIDI}.
160 Snippets: @rlsr{Percussion}.
163 @node Percussion staves
164 @unnumberedsubsubsec Percussion staves
169 A percussion part for more than one instrument typically uses a
170 multiline staff where each position in the staff refers to one
171 piece of percussion. To typeset the music, the notes must be
172 interpreted in @code{DrumStaff} and @code{DrumVoice} context.
174 @lilypond[quote,verbatim]
176 crashcymbal4 hihat8 halfopenhihat hh hh hh openhihat
179 bassdrum4 snare8 bd r bd sn4
182 \new DrumVoice { \voiceOne \up }
183 \new DrumVoice { \voiceTwo \down }
187 The above example shows verbose polyphonic notation. The short
188 polyphonic notation, described in @rlearning{I'm hearing Voices},
189 can also be used if the voices are instantiated by hand first.
192 @lilypond[quote,verbatim]
194 \new DrumVoice = "1" { s1*2 }
195 \new DrumVoice = "2" { s1*2 }
199 \repeat unfold 16 hh16
207 There are also other layout possibilities. To use these, set the
208 property @code{drumStyleTable} in context @code{DrumVoice}. The
209 following variables have been predefined:
211 @c FIXME: decide what to do about this table. (ie verbatim or not)
215 This is the default. It typesets a typical drum kit on a
218 @lilypond[quote,line-width=10.0\cm]
220 cymc cyms cymr hh hhc hho hhho hhp
221 cb hc bd sn ss tomh tommh tomml toml tomfh tomfl }
223 cymc cyms cymr hh hhc hho hhho hhp \break
224 cb hc bd sn ss tomh tommh tomml toml tomfh tomfl s16 }
226 << \new DrumStaff \with {
228 \remove Time_signature_engraver
229 \override Stem #'transparent = ##t
230 \override Stem #'Y-extent = ##f
231 \override VerticalAxisGroup #'minimum-Y-extent = #'(-4.0 . 5.0)
238 \override LyricText #'font-family = #'typewriter
239 \override BarNumber #'transparent =##T
245 The drum scheme supports six different toms. When there are fewer
246 toms, simply select the toms that produce the desired result. For
247 example, to get toms on the three middle lines you use
248 @code{tommh}, @code{tomml}, and @code{tomfh}.
251 This typesets timbales on a two line staff:
253 @lilypond[quote,ragged-right]
254 nam = \lyricmode { timh ssh timl ssl cb }
255 mus = \drummode { timh ssh timl ssl cb s16 }
258 \new DrumStaff \with {
260 \remove Time_signature_engraver
261 \override Stem #'transparent = ##t
262 \override Stem #'Y-extent = ##f
263 \override StaffSymbol #'line-count = #2
264 \override StaffSymbol #'staff-space = #2
265 \override VerticalAxisGroup #'minimum-Y-extent = #'(-3.0 . 4.0)
266 drumStyleTable = #timbales-style
269 \override LyricText #'font-family = #'typewriter
276 This typesets congas on a two line staff:
278 @lilypond[quote,ragged-right]
279 nam = \lyricmode { cgh cgho cghm ssh cgl cglo cglm ssl }
280 mus = \drummode { cgh cgho cghm ssh cgl cglo cglm ssl s16 }
283 \new DrumStaff \with {
285 \remove Time_signature_engraver
286 drumStyleTable = #congas-style
287 \override StaffSymbol #'line-count = #2
289 %% this sucks; it will lengthen stems.
290 \override StaffSymbol #'staff-space = #2
291 \override Stem #'transparent = ##t
292 \override Stem #'Y-extent = ##f
295 \override LyricText #'font-family = #'typewriter
302 This typesets bongos on a two line staff:
304 @lilypond[quote,ragged-right]
305 nam = \lyricmode { boh boho bohm ssh bol bolo bolm ssl }
306 mus = \drummode { boh boho bohm ssh bol bolo bolm ssl s16 }
309 \new DrumStaff \with {
311 \remove Time_signature_engraver
312 \override StaffSymbol #'line-count = #2
313 drumStyleTable = #bongos-style
315 %% this sucks; it will lengthen stems.
316 \override StaffSymbol #'staff-space = #2
317 \override Stem #'transparent = ##t
318 \override Stem #'Y-extent = ##f
321 \override LyricText #'font-family = #'typewriter
327 @item percussion-style
328 To typeset all kinds of simple percussion on one line staves:
330 @lilypond[quote,ragged-right]
331 nam = \lyricmode { tri trio trim gui guis guil cb cl tamb cab mar hc }
332 mus = \drummode { tri trio trim gui guis guil cb cl tamb cab mar hc s16 }
335 \new DrumStaff \with{
337 drumStyleTable = #percussion-style
338 \override StaffSymbol #'line-count = #1
339 \remove Time_signature_engraver
340 \override Stem #'transparent = ##t
341 \override Stem #'Y-extent = ##f
344 \override LyricText #'font-family = #'typewriter
352 @node Custom percussion staves
353 @unnumberedsubsubsec Custom percussion staves
355 If you do not like any of the predefined lists you can define your
356 own list at the top of your file.
358 @lilypond[quote,verbatim]
360 (bassdrum default #f -1)
363 (pedalhihat xcircle "stopped" 2)
364 (lowtom diamond #f 3)))
365 up = \drummode { hh8 hh hh hh hhp4 hhp }
366 down = \drummode { bd4 sn bd toml8 toml }
369 \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
370 \new DrumVoice { \voiceOne \up }
371 \new DrumVoice { \voiceTwo \down }
378 FIXME: MOVE ALL THESE TO LSR! -gp
380 Here are some examples:
382 Two Woodblocks, entered with wbh (high woodblock) and wbl (low woodblock)
384 @lilypond[quote,verbatim]
385 % These lines define the position of the woodblocks in the stave;
386 % if you like, you can change it or you can use special note heads
387 % for the woodblocks.
388 #(define mydrums '((hiwoodblock default #t 3)
389 (lowoodblock default #t -2)))
392 % This defines a staff with only two lines.
393 % It also defines the positions of the two lines.
394 \override Staff.StaffSymbol #'line-positions = #'(-2 3)
396 % This is neccessary; if not entered, the barline would be too short!
397 \override Staff.BarLine #'bar-size = #3
401 \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
403 % with this you load your new drum style table
408 wbl8 wbl16 wbl wbh8-> wbl |
409 wbl8 wbl16 wbh-> ~ wbh wbl16 r8 |
414 Note that in this special case the length of the barline must
415 altered with @code{\override Staff.BarLine #'bar-size #number}.
416 Otherwise it would be too short. And you have also to define the
417 positions of the two stafflines. For more information about these
418 delicate things have a look at @ref{Staff symbol}.
420 A tambourine, entered with @q{tamb}:
422 @lilypond[quote,verbatim]
423 #(define mydrums '((tambourine default #t 0)))
426 \override Staff.StaffSymbol #'line-positions = #'( 0 )
427 \override Staff.BarLine #'bar-size = #3
428 \set DrumStaff.instrumentName = "Tambourine"
433 \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
437 tamb8. tamb16 tamb8 tamb tamb tamb |
438 tamb4. tamb8 tamb tamb |
439 % the trick with the scaled duration and the shorter rest
440 % is neccessary for the correct ending of the trill-span!
441 tamb2.*5/6 \startTrillSpan s8 \stopTrillSpan |
446 Music for Tam-Tam (entered with @q{tt}):
448 @lilypond[quote,verbatim]
449 #(define mydrums '((tamtam default #t 0)))
452 \override Staff.StaffSymbol #'line-positions = #'( 0 )
453 \override Staff.BarLine #'bar-size = #3
454 \set DrumStaff.instrumentName = "Tamtam"
459 \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
462 tt 1 \pp \laissezVibrer
467 Two different bells, entered with @q{cb} (cowbell) and @q{rb} (ridebell)
469 @lilypond[quote,verbatim]
470 #(define mydrums '((ridebell default #t 3)
471 (cowbell default #t -2)))
474 \override DrumStaff.StaffSymbol #'line-positions = #'(-2 3)
475 \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
476 \override Staff.BarLine #'bar-size = #3
477 \set DrumStaff.instrumentName = "Different Bells"
484 rb8 rb cb cb16 rb-> ~ |
485 rb16 rb8 rb16 cb8 cb |
490 Here an short example by maestro Stravinsky (from @q{L'histoire du Soldat})
492 @lilypond[quote,verbatim]
493 #(define mydrums '((bassdrum default #t 4)
494 (snare default #t -4)
495 (tambourine default #t 0)))
505 \context DrumVoice <<
509 \stemDown sn8 \stemUp tamb s8 |
511 \stemUp tamb8 \stemDown sn8 \stemUp sn16 \stemDown sn \stemUp sn8 |
512 \stemDown sn8 \stemUp tamb s8 |
513 \stemUp sn4 s8 \stemUp tamb
521 s4 bd8 s2*2 s4 bd8 s4 bd8 s8
532 \set DrumStaff.instrumentName = \markup {
536 "caisse claire s. timbre"
539 \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
544 \set DrumStaff.instrumentName = "Grosse Caisse"
545 \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
553 Snippets: @rlsr{Percussion}.
555 Internals Reference: @rinternals{DrumStaff}, @rinternals{DrumVoice}.
558 @c TODO: check name -gp
560 @unnumberedsubsubsec Ghost notes
562 Ghost notes for drums and percussion may be created using the
563 @code{\parenthesize} command detailed in @ref{Parentheses}.
564 However, the default @code{\drummode} does not include the
565 @code{Parenthesis_engraver} plugin which allows this.
567 @lilypond[quote,ragged-right,verbatim,fragment]
568 \new DrumStaff \with {
569 \consists "Parenthesis_engraver"
572 \context DrumVoice = "1" { s1 }
573 \context DrumVoice = "2" { s1 }
577 hh8[ hh] <hh sn> hh16
578 < \parenthesize sn > hh
579 < \parenthesize sn > hh8 <hh sn> hh
590 Also note that you must add chords (@code{< >} brackets)
591 around each @code{\parenthesize} statement.
595 Snippets: @rlsr{Percussion}.