Next: , Previous: Pitched percussion, Up: Common notation for percussion


2.5.1.5 Percussion staves

A percussion part for more than one instrument typically uses a multiline staff where each position in the staff refers to one piece of percussion. To typeset the music, the notes must be interpreted in DrumStaff and DrumVoice context.

     
     up = \drummode {
       crashcymbal4 hihat8 halfopenhihat hh hh hh openhihat
     }
     down = \drummode {
       bassdrum4 snare8 bd r bd sn4
     }
     \new DrumStaff <<
       \new DrumVoice { \voiceOne \up }
       \new DrumVoice { \voiceTwo \down }
     >>

[image of music]

The above example shows verbose polyphonic notation. The short polyphonic notation, described in I'm hearing Voices, can also be used if the voices are instantiated by hand first. For example,

     
     \new DrumStaff <<
       \new DrumVoice = "1" { s1*2 }
       \new DrumVoice = "2" { s1*2 }
       \drummode {
         bd4 sn4 bd4 sn4
         << {
           \repeat unfold 16 hh16
         } \\ {
           bd4 sn4 bd4 sn4
         } >>
       }
     >>

[image of music]

There are also other layout possibilities. To use these, set the property drumStyleTable in context DrumVoice. The following variables have been predefined:

drums-style
This is the default. It typesets a typical drum kit on a five-line staff:

[image of music]

The drum scheme supports six different toms. When there are fewer toms, simply select the toms that produce the desired result. For example, to get toms on the three middle lines you use tommh, tomml, and tomfh.

timbales-style
This typesets timbales on a two line staff:

[image of music]


congas-style
This typesets congas on a two line staff:

[image of music]


bongos-style
This typesets bongos on a two line staff:

[image of music]


percussion-style
To typeset all kinds of simple percussion on one line staves:

[image of music]

This page is for LilyPond-2.11.58 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: français, español, deutsch.