version that you are working on. See TRANSLATION for details.
@end ignore
-@c \version "2.11.62"
+@c \version "2.12.0"
@node Percussion
@section Percussion
@end itemize
-@seealso
+@seealso
Notation Reference:
@ref{Showing melody rhythms},
@ref{Instantiating new staves}.
There are a few issues concerning MIDI support for percussion
instruments; for details please see @ref{Percussion in MIDI}.
-@seealso
+@seealso
Notation Reference: @ref{Percussion in MIDI}, @ref{Percussion notes}.
File: @file{ly/@/drumpitch@/-init@/.ly}
}
@end lilypond
-@seealso
+@seealso
Snippets: @rlsr{Percussion}.
vibraphone, and timpani) are written using normal staves.
This is covered in other sections of the manual.
-@seealso
+@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
tambustaff = {
\override Staff.StaffSymbol #'line-positions = #'( 0 )
\override Staff.BarLine #'bar-size = #3
- \set DrumStaff.instrumentName = "Tambourine"
+ \set DrumStaff.instrumentName = #"Tambourine"
}
\new DrumStaff {
\drummode {
\time 6/8
- \repeat "unfold" 2 { tamb8. tamb16 tamb8 tamb tamb tamb | }
+ tamb8. tamb16 tamb8 tamb tamb tamb |
tamb4. tamb8 tamb tamb |
% the trick with the scaled duration and the shorter rest
% is neccessary for the correct ending of the trill-span!
tamtamstaff = {
\override Staff.StaffSymbol #'line-positions = #'( 0 )
\override Staff.BarLine #'bar-size = #3
- \set DrumStaff.instrumentName = "Tamtam"
+ \set DrumStaff.instrumentName = #"Tamtam"
}
\new DrumStaff {
\override DrumStaff.StaffSymbol #'line-positions = #'(-2 3)
\set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
\override Staff.BarLine #'bar-size = #3
- \set DrumStaff.instrumentName = "Different Bells"
+ \set DrumStaff.instrumentName = #"Different Bells"
}
\new DrumStaff {
\bellstaff
\drummode {
\time 2/4
- \repeat "unfold" 2 { rb8 rb cb cb16 rb-> ~ |
- rb16 rb8 rb16 cb8 cb | }
+ rb8 rb cb cb16 rb-> ~ |
+ rb16 rb8 rb16 cb8 cb |
}
}
@end lilypond
}
\new DrumStaff {
- \set DrumStaff.instrumentName = "Grosse Caisse"
+ \set DrumStaff.instrumentName = #"Grosse Caisse"
\set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
\drumsB }
>>
}
@end lilypond
-@seealso
+@seealso
Snippets: @rlsr{Percussion}.
Internals Reference: @rinternals{DrumStaff}, @rinternals{DrumVoice}.
-
@c TODO: check name -gp
@node Ghost notes
@unnumberedsubsubsec Ghost notes
@lilypond[quote,ragged-right,verbatim,fragment]
\new DrumStaff \with {
\consists "Parenthesis_engraver"
-} <<
- \context DrumVoice = "1" { s1 *2 }
- \context DrumVoice = "2" { s1 *2 }
+}
+<<
+ \context DrumVoice = "1" { s1 }
+ \context DrumVoice = "2" { s1 }
\drummode {
<<
{
hh8[ hh] <hh sn> hh16
< \parenthesize sn > hh
< \parenthesize sn > hh8 <hh sn> hh
- } \\ {
+ } \\
+ {
bd4 r4 bd8 bd r8 bd
}
>>
Also note that you must add chords (@code{< >} brackets)
around each @code{\parenthesize} statement.
-@seealso
+@seealso
Snippets: @rlsr{Percussion}.