Adding drum parts: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Using the powerful pre-configured tools such as the <code>\drummode</code> function and the <code>DrumStaff</code> context, inputting drum parts is quite easy: drums are placed at their own staff positions (with a special clef symbol) and have note heads according to the drum. Attaching an extra symbol to the drum or restricting the number of lines is possible. | Using the powerful pre-configured tools such as the <code>\drummode</code> function and the <code>DrumStaff</code> context, inputting drum parts is quite easy: drums are placed at their own staff positions (with a special clef symbol) and have note heads according to the drum. Attaching an extra symbol to the drum or restricting the number of lines is possible. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
drh = \drummode { | drh = \drummode { | ||
cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh | cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh | ||
| Line 39: | Line 39: | ||
[[Category:Instrument-specific]] | [[Category:Instrument-specific]] | ||
[[Category:Percussion]] | [[Category:Percussion]] | ||
[[Category:Really simple]] | |||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Specific notation]] | [[Category:Specific notation]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 06:22, 15 December 2025
Using the powerful pre-configured tools such as the \drummode function and the DrumStaff context, inputting drum parts is quite easy: drums are placed at their own staff positions (with a special clef symbol) and have note heads according to the drum. Attaching an extra symbol to the drum or restricting the number of lines is possible.
\version "2.24"
drh = \drummode {
cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh
hhc4 r4 r2
}
drl = \drummode {
bd4 sn8 bd bd4 << bd ss >>
bd8 tommh tommh bd toml toml bd tomfh16 tomfh
}
timb = \drummode {
timh4 ssh timl8 ssh r timh r4
ssh8 timl r4 cb8 cb
}
\score {
<<
\new DrumStaff \with {
instrumentName = "timbales"
drumStyleTable = #timbales-style
\override StaffSymbol.line-count = #2
\override BarLine.bar-extent = #'(-1 . 1)
}
<<
\timb
>>
\new DrumStaff \with { instrumentName = "drums" }
<<
\new DrumVoice { \stemUp \drh }
\new DrumVoice { \stemDown \drl }
>>
>>
\layout { }
\midi { \tempo 4 = 120 }
}