Jump to content

Percussion example: Difference between revisions

From LilyPond wiki
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
                   (snare      default #f -4)
                   (snare      default #f -4)
                   (tambourine default #f  0)))
                   (tambourine default #f  0)))
U = \stemUp
D = \stemDown


global = {
global = {
Line 18: Line 21:
     \drummode {
     \drummode {
       \autoBeamOff
       \autoBeamOff
       \stemDown sn8 \stemUp tamb s8 |
       \D sn8 \U tamb s |
       sn4 \stemDown sn4 |
       sn4 \D sn4 |
       \stemUp tamb8 \stemDown sn8 \stemUp sn16 \stemDown sn \stemUp sn8 |
       \U tamb8 \D sn \U sn16 \D sn \U sn8 |
       \stemDown sn8 \stemUp tamb s8 |
       \D sn8 \U tamb s |
       \stemUp sn4 s8 \stemUp tamb
       \U sn4 s8 \U tamb
     }
     }
   >>
   >>
Line 28: Line 31:


drumsB = \drummode {
drumsB = \drummode {
   s4 bd8 s2*2 s4 bd8 s4 bd8 s8
   s4 bd8 s2*2 s4 bd8 s4 bd8 s
}
}


\layout {
\layout {
   indent = 40
   indent = 40\mm
   \context {
   \context {
     \DrumStaff
     \DrumStaff
Line 54: Line 57:
</lilypond>
</lilypond>


[[Category:Percussion]]
[[Category:Real music]]
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Specific notation]]
[[Category:Specific notation]]
[[Category:Percussion]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]
[[Category:Snippet]]

Latest revision as of 10:53, 15 December 2025

A short example taken from Stravinsky's L'histoire du Soldat.

\version "2.24"

#(define mydrums '((bassdrum   default #f  4)
                   (snare      default #f -4)
                   (tambourine default #f  0)))

U = \stemUp
D = \stemDown

global = {
  \time 3/8 s4.
  \time 2/4 s2*2
  \time 3/8 s4.
  \time 2/4 s2
}

drumsA = {
  \context DrumVoice <<
    \global
    \drummode {
      \autoBeamOff
      \D sn8 \U tamb s |
      sn4 \D sn4 |
      \U tamb8 \D sn \U sn16 \D sn \U sn8 |
      \D sn8 \U tamb s |
      \U sn4 s8 \U tamb
    }
  >>
}

drumsB = \drummode {
  s4 bd8 s2*2 s4 bd8 s4 bd8 s
}

\layout {
  indent = 40\mm
  \context {
    \DrumStaff
    drumStyleTable = #(alist->hash-table mydrums)
  }
}

\score {
  \new StaffGroup <<
    \new DrumStaff \with {
      instrumentName = \markup \center-column {
        "Tambourine"
        "et"
        "caisse claire s. timbre" }
    } \drumsA
    \new DrumStaff \with {
      instrumentName = "Grosse Caisse"
    }\drumsB
  >>
}