Percussion example: Difference between revisions

m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
A short example taken from Stravinsky's ''L'histoire du Soldat''.
A short example taken from Stravinsky's ''L'histoire du Soldat''.


<lilypond version="2.24" full>
<lilypond version="2.24">
#(define mydrums '((bassdrum  default #f  4)
#(define mydrums '((bassdrum  default #f  4)
                   (snare      default #f -4)
                   (snare      default #f -4)
                   (tambourine default #f  0)))
                   (tambourine default #f  0)))


\paper { tagline = ##f }
U = \stemUp
D = \stemDown


global = {
global = {
Line 17: Line 18:
drumsA = {
drumsA = {
   \context DrumVoice <<
   \context DrumVoice <<
     { \global }
     \global
     { \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
      }
     }
     }
   >>
   >>
}
}


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


\layout {
\layout {
   indent = 40
   indent = 40\mm
   \context {
   \context {
     \DrumStaff
     \DrumStaff
Line 50: Line 48:
         "Tambourine"
         "Tambourine"
         "et"
         "et"
         "caisse claire s. timbre"
         "caisse claire s. timbre" }
        }
    } \drumsA
  }
    \new DrumStaff \with {
  \drumsA
      instrumentName = "Grosse Caisse"
  \new DrumStaff \with {
    }\drumsB
    instrumentName = "Grosse Caisse"
  }
  \drumsB
   >>
   >>
}
}
</lilypond>
</lilypond>


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