Guide, node Updating translation committishes..
@end ignore
-@c \version "2.15.10"
+@c \version "2.17.30"
@node Percussion
@section Percussion
@ref{Instantiating new staves}.
@item MIDI output is discussed in a separate section; please see
-@ref{Percussion in MIDI}.
+@ref{MIDI instruments}.
@end itemize
-
@seealso
Notation Reference:
@ref{Showing melody rhythms},
@ref{Instantiating new staves}.
-@ref{Percussion in MIDI}.
+@ref{MIDI instruments}.
Snippets:
@rlsr{Percussion}.
@lilypond[quote,ragged-right,verbatim]
\drums {
\clef percussion
- bd4 bd bd bd
+ bd4 4 4 4
\clef treble
- hh4 hh hh hh
+ hh4 4 4 4
}
@end lilypond
There are a few issues concerning MIDI support for percussion
-instruments; for details please see @ref{Percussion in MIDI}.
-
+instruments; for details please see @ref{MIDI instruments}.
@seealso
Notation Reference:
-@ref{Percussion in MIDI},
+@ref{MIDI instruments},
@ref{Percussion notes}.
-File:
-@file{ly/drumpitch-init.ly}
+Installed Files:
+@file{ly/drumpitch-init.ly}.
Snippets:
@rlsr{Percussion}.
@lilypond[quote,verbatim]
\drums {
\time 2/4
- sn16 sn8 sn16 sn8 sn8:32 ~
- sn8 sn8 sn4:32 ~
- sn4 sn8 sn16 sn16
- sn4 r4
+ sn16 8 16 8 8:32 ~
+ 8 8 4:32 ~
+ 4 8 16 16
+ 4 r4
}
@end lilypond
@lilypond[quote,verbatim]
\drums {
\repeat unfold 2 {
- sn16^"L" sn^"R" sn^"L" sn^"L" sn^"R" sn^"L" sn^"R" sn^"R"
+ sn16^"L" 16^"R" 16^"L" 16^"L" 16^"R" 16^"L" 16^"R" 16^"R"
\stemUp
- sn16_"L" sn_"R" sn_"L" sn_"L" sn_"R" sn_"L" sn_"R" sn_"R"
+ sn16_"L" 16_"R" 16_"L" 16_"L" 16_"R" 16_"L" 16_"R" 16_"R"
}
}
@end lilypond
-
@seealso
-
Notation Reference:
@ref{Tremolo repeats}.
@node Pitched percussion
@unnumberedsubsubsec Pitched percussion
-Certain pitched percussion instruments (e.g. xylophone,
+Certain pitched percussion instruments (e.g., xylophone,
vibraphone, and timpani) are written using normal staves.
This is covered in other sections of the manual.
-
@seealso
-@c TODO: possibly link to an alternate section of NR 3.5, if
-@c "percussion in MIDI" gets a separate subsubsection for
-@c pitched percussion sounds. -gp
Notation Reference:
-@ref{Percussion in MIDI}.
+@ref{MIDI instruments}.
Snippets:
@rlsr{Percussion}.
cb hc bd sn ss tomh tommh tomml toml tomfh tomfl s16 }
\score {
<< \new DrumStaff \with {
- \remove Bar_engraver
- \remove Time_signature_engraver
- \override Stem #'transparent = ##t
- \override Flag #'transparent = ##t
- \override Stem #'Y-extent = ##f
+ \remove "Bar_engraver"
+ \remove "Time_signature_engraver"
+ \hide Stem
+ \override Stem.Y-extent = ##f
} \mus
\new Lyrics \nam
>>
\layout {
\context {
\Score
- \override LyricText #'font-family = #'typewriter
- \override BarNumber #'transparent =##T
+ \override LyricText.font-family = #'typewriter
+ \override BarNumber.transparent =##T
}
}
}
example, to get toms on the three middle lines you use
@code{tommh}, @code{tomml}, and @code{tomfh}.
+@item agostini-drums-style
+Invented by the French percussionist Dante Agostini in 1965, this notation is
+commonly employed in France but also elsewhere.
+
+@lilypond[quote,line-width=10.0\cm]
+nam = \lyricmode {
+ cymc cyms cymr hh hhc hho hhho hhp
+ cb hc bd sn ss tomh tommh tomml toml tomfh tomfl }
+mus = \drummode {
+ cymc cyms cymr hh hhc hho hhho hhp \break
+ cb hc bd sn ss tomh tommh tomml toml tomfh tomfl s16 }
+\score {
+ << \new DrumStaff \with {
+ \remove "Bar_engraver"
+ \remove "Time_signature_engraver"
+ \hide Stem
+ \override Stem.Y-extent = ##f
+ drumStyleTable = #agostini-drums-style
+ } \mus
+ \new Lyrics \nam
+ >>
+ \layout {
+ \context {
+ \Score
+ \override LyricText.font-family = #'typewriter
+ \override BarNumber.transparent =##T
+ }
+ }
+}
+@end lilypond
+
@item timbales-style
This typesets timbales on a two line staff:
<<
\new DrumStaff \with {
- \remove Bar_engraver
- \remove Time_signature_engraver
- \override Stem #'transparent = ##t
- \override Flag #'transparent = ##t
- \override Stem #'Y-extent = ##f
- \override StaffSymbol #'line-count = #2
- \override StaffSymbol #'staff-space = #2
- \override VerticalAxisGroup #'minimum-Y-extent = #'(-3.0 . 4.0)
+ \remove "Bar_engraver"
+ \remove "Time_signature_engraver"
+ \hide Stem
+ \override Stem.Y-extent = ##f
+ \override StaffSymbol.line-count = #2
+ \override StaffSymbol.staff-space = #2
+ \override VerticalAxisGroup.minimum-Y-extent = #'(-3.0 . 4.0)
drumStyleTable = #timbales-style
} \mus
\new Lyrics {
- \override LyricText #'font-family = #'typewriter
+ \override LyricText.font-family = #'typewriter
\nam
}
>>
<<
\new DrumStaff \with {
- \remove Bar_engraver
- \remove Time_signature_engraver
+ \remove "Bar_engraver"
+ \remove "Time_signature_engraver"
drumStyleTable = #congas-style
- \override StaffSymbol #'line-count = #2
+ \override StaffSymbol.line-count = #2
%% this sucks; it will lengthen stems.
- \override StaffSymbol #'staff-space = #2
- \override Stem #'transparent = ##t
- \override Flag #'transparent = ##t
- \override Stem #'Y-extent = ##f
+ \override StaffSymbol.staff-space = #2
+ \hide Stem
+ \override Stem.Y-extent = ##f
} \mus
\new Lyrics {
- \override LyricText #'font-family = #'typewriter
+ \override LyricText.font-family = #'typewriter
\nam
}
>>
<<
\new DrumStaff \with {
- \remove Bar_engraver
- \remove Time_signature_engraver
- \override StaffSymbol #'line-count = #2
+ \remove "Bar_engraver"
+ \remove "Time_signature_engraver"
+ \override StaffSymbol.line-count = #2
drumStyleTable = #bongos-style
%% this sucks; it will lengthen stems.
- \override StaffSymbol #'staff-space = #2
- \override Stem #'transparent = ##t
- \override Flag #'transparent = ##t
- \override Stem #'Y-extent = ##f
+ \override StaffSymbol.staff-space = #2
+ \hide Stem
+ \override Stem.Y-extent = ##f
} \mus
\new Lyrics {
- \override LyricText #'font-family = #'typewriter
+ \override LyricText.font-family = #'typewriter
\nam
}
>>
<<
\new DrumStaff \with{
- \remove Bar_engraver
+ \remove "Bar_engraver"
drumStyleTable = #percussion-style
- \override StaffSymbol #'line-count = #1
- \remove Time_signature_engraver
- \override Stem #'transparent = ##t
- \override Flag #'transparent = ##t
- \override Stem #'Y-extent = ##f
+ \override StaffSymbol.line-count = #1
+ \remove "Time_signature_engraver"
+ \hide Stem
+ \override Stem.Y-extent = ##f
} \mus
\new Lyrics {
- \override LyricText #'font-family = #'typewriter
+ \override LyricText.font-family = #'typewriter
\nam
}
>>
woodstaff = {
% This defines a staff with only two lines.
% It also defines the positions of the two lines.
- \override Staff.StaffSymbol #'line-positions = #'(-2 3)
+ \override Staff.StaffSymbol.line-positions = #'(-2 3)
% This is necessary; if not entered, the barline would be too short!
- \override Staff.BarLine #'bar-extent = #'(-1.5 . 1.5)
+ \override Staff.BarLine.bar-extent = #'(-1.5 . 1.5)
}
\new DrumStaff {
\drummode {
\time 2/4
- wbl8 wbl16 wbl wbh8-> wbl |
- wbl8 wbl16 wbh-> ~ wbh wbl16 r8 |
+ wbl8 16 16 8-> 8 |
+ wbl8 16 16-> ~ 16 16 r8 |
}
}
@end lilypond
Note that in this special case the length of the barline must
-altered with @code{\override Staff.BarLine #'bar-extent #'(from . to)}.
+altered with @code{\override Staff.BarLine.bar-extent #'(from . to)}.
Otherwise it would be too short. And you have also to define the
positions of the two stafflines. For more information about these
delicate things have a look at @ref{Staff symbol}.
#(define mydrums '((tambourine default #t 0)))
tambustaff = {
- \override Staff.StaffSymbol #'line-positions = #'( 0 )
- \override Staff.BarLine #'bar-extent = #'(-1.5 . 1.5)
+ \override Staff.StaffSymbol.line-positions = #'( 0 )
+ \override Staff.BarLine.bar-extent = #'(-1.5 . 1.5)
\set DrumStaff.instrumentName = #"Tambourine"
}
\drummode {
\time 6/8
- tamb8. tamb16 tamb8 tamb tamb tamb |
- tamb4. tamb8 tamb tamb |
+ tamb8. 16 8 8 8 8 |
+ tamb4. 8 8 8 |
% the trick with the scaled duration and the shorter rest
% is neccessary for the correct ending of the trill-span!
tamb2.*5/6 \startTrillSpan s8 \stopTrillSpan |
#(define mydrums '((tamtam default #t 0)))
tamtamstaff = {
- \override Staff.StaffSymbol #'line-positions = #'( 0 )
- \override Staff.BarLine #'bar-extent = #'(-1.5 . 1.5)
+ \override Staff.StaffSymbol.line-positions = #'( 0 )
+ \override Staff.BarLine.bar-extent = #'(-1.5 . 1.5)
\set DrumStaff.instrumentName = #"Tamtam"
}
(cowbell default #t -2)))
bellstaff = {
- \override DrumStaff.StaffSymbol #'line-positions = #'(-2 3)
+ \override DrumStaff.StaffSymbol.line-positions = #'(-2 3)
\set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
- \override Staff.BarLine #'bar-extent = #'(-1.5 . 1.5)
+ \override Staff.BarLine.bar-extent = #'(-1.5 . 1.5)
\set DrumStaff.instrumentName = #"Different Bells"
}
\bellstaff
\drummode {
\time 2/4
- rb8 rb cb cb16 rb-> ~ |
- rb16 rb8 rb16 cb8 cb |
+ rb8 8 cb8 16 rb16-> ~ |
+ 16 8 16 cb8 8 |
}
}
@end lilypond
}
@end lilypond
-
@seealso
Snippets:
@rlsr{Percussion}.
Ghost notes for drums and percussion may be created using the
@code{\parenthesize} command detailed in @ref{Parentheses}.
-However, the default @code{\drummode} does not include the
-@code{Parenthesis_engraver} plugin which allows this.
@lilypond[quote,ragged-right,verbatim]
-\new DrumStaff \with {
- \consists "Parenthesis_engraver"
-}
+\new DrumStaff
<<
\context DrumVoice = "1" { s1 }
\context DrumVoice = "2" { s1 }
\drummode {
<<
{
- hh8[ hh] <hh sn> hh16
- < \parenthesize sn > hh
- < \parenthesize sn > hh8 <hh sn> hh
+ hh8[ 8] <hh sn> hh16
+ \parenthesize sn hh
+ \parenthesize sn hh8 <hh sn> hh
} \\
{
- bd4 r4 bd8 bd r8 bd
+ bd4 r4 bd8 8 r8 bd
}
>>
}
>>
@end lilypond
-@noindent
-Also note that you must add chords (@code{< >} brackets)
-around each @code{\parenthesize} statement.
-
-
@seealso
Snippets:
@rlsr{Percussion}.