]> 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 c3a915d5d47288df50d414c7d49db5bec775a1e8..18a3696de456f7c828e37aa3e1c0912373e55ab5 100644 (file)
@@ -1,42 +1,14 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.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.15.20"
+% 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 = "rhythms, percussion"
-
-%% Translation of GIT committish: 8b93de6ce951b7b14bc7818f31019524295b990f
-  texidoces = "
-Mediante la utilización de las potentes herramientas preconfiguradas
-como la función @code{\\drummode} y el contexto @code{DrumStaff}, la
-introducción de partes para percusión es muy fácil: las percusiones se
-sitúan en sus propias posiciones de pentagrama (con una clave
-especial) y tienen las cabezas correspondientes al instrumento.  Es
-posible añadir un símbolo adicional a la percusión o reducir el número
-de líneas.
-
-"
-  doctitlees = "Escritura de partes de percusión"
-
-
-%% Translation of GIT committish: 9a65042d49324f2e3dff18c4b0858def81232eea
-  texidocfr = "
-Grâce à la puissance des outils préconfigurés tels que la fonction
-@code{\\drummode} et le contexte @code{DrumStaff}, la saisie de
-parties pour percussions est extrêmement simplifiée : chaque composant
-d'une batterie trouve sa place sur une portée dédiée (avec une clef
-spécifique) et les têtes de note sont spécifiques à chaque élément.
-Il est également possible d'affecter un symbole particulier à chaque
-élément, tout comme de restreindre le nombre de lignes de la portée.
-
-"
-
-  doctitlefr = "Ajout de parties de batterie"
-
+  lsrtags = "percussion, preparing-parts, really-simple, rhythms, specific-notation"
 
   texidoc = "
 Using the powerful pre-configured tools such as the @code{\\drummode}
@@ -50,32 +22,37 @@ lines is possible.
   doctitle = "Adding drum parts"
 } % begin verbatim
 
-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 }
+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
+      }
+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)
-    } <<
-      \set Staff.instrumentName = #"timbales"
+      \override StaffSymbol.line-count = #2
+      \override BarLine.bar-extent = #'(-1 . 1)
+    }
+    <<
       \timb
     >>
-    \new DrumStaff <<
-      \set Staff.instrumentName = #"drums"
+    \new DrumStaff \with { instrumentName = #"drums" }
+    <<
       \new DrumVoice { \stemUp \drh }
       \new DrumVoice { \stemDown \drl }
     >>
   >>
   \layout { }
-  \midi {
-    \context {
-      \Score
-      tempoWholesPerMinute = #(ly:make-moment 120 4)
-    }
-  }
+  \midi { \tempo 4 = 120 }
 }
-