]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/adding-drum-parts.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / adding-drum-parts.ly
index 7ce432bcfc0324fc0bc340ceb9aff158e2f9a32d..18a3696de456f7c828e37aa3e1c0912373e55ab5 100644 (file)
@@ -1,10 +1,11 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.di.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
-\version "2.18.0"
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.56
+\version "2.19.56"
 
 \header {
   lsrtags = "percussion, preparing-parts, really-simple, rhythms, specific-notation"
@@ -24,7 +25,8 @@ lines is possible.
 drh = \drummode {
         cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh
         hhc4 r4 r2
-      }
+      } % begin verbatim
+
 drl = \drummode {
         bd4 sn8 bd bd4 << bd ss >>
         bd8 tommh tommh bd toml toml bd tomfh16 tomfh
@@ -37,21 +39,20 @@ timb = \drummode {
 \score {
   <<
     \new DrumStaff \with {
+      instrumentName = #"timbales"
       drumStyleTable = #timbales-style
       \override StaffSymbol.line-count = #2
       \override BarLine.bar-extent = #'(-1 . 1)
-    } <<
-      \set Staff.instrumentName = #"timbales"
+    }
+    <<
       \timb
     >>
-    \new DrumStaff <<
-      \set Staff.instrumentName = #"drums"
+    \new DrumStaff \with { instrumentName = #"drums" }
+    <<
       \new DrumVoice { \stemUp \drh }
       \new DrumVoice { \stemDown \drl }
     >>
   >>
   \layout { }
-  \midi {
-    \tempo 4 = 120
-  }
+  \midi { \tempo 4 = 120 }
 }