]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/jazz-combo-template.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / jazz-combo-template.ly
index 9d0dc82fc3e67ca9c83723ed7f4b5697ff6d34c7..f16a6970a096de589dc179f06367173af20cce80 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 = "fretted-strings, keyboards, percussion, real-music, template"
@@ -29,7 +30,8 @@ music is within a @code{\\transpose} section.
     \column {
       "LilyPond example file by Amelie Zapf,"
       "Berlin 07/07/2003"
-    }
+    } % begin verbatim
+
   }
 }
 % To make the example display in the documentation
@@ -74,7 +76,6 @@ trpHarmony = \transpose c' d {
 }
 trumpet = {
   \global
-  \set Staff.instrumentName = #"Trumpet"
   \clef treble
   <<
     \trpt
@@ -91,7 +92,6 @@ altoHarmony = \transpose c' a {
 }
 altoSax = {
   \global
-  \set Staff.instrumentName = #"Alto Sax"
   \clef treble
   <<
     \alto
@@ -112,7 +112,6 @@ bariHarmony = \transpose c' a \chordmode {
 }
 bariSax = {
   \global
-  \set Staff.instrumentName = #"Bari Sax"
   \clef treble
   <<
     \bari
@@ -129,7 +128,6 @@ tboneHarmony = \chordmode {
 }
 trombone = {
   \global
-  \set Staff.instrumentName = #"Trombone"
   \clef bass
   <<
     \tbone
@@ -153,7 +151,6 @@ gtrHarmony = \chordmode {
 }
 guitar = {
   \global
-  \set Staff.instrumentName = #"Guitar"
   \clef treble
   <<
     \gtr
@@ -186,7 +183,6 @@ lhLower = \relative c {
 PianoRH = {
   \clef treble
   \global
-  \set Staff.midiInstrument = #"acoustic grand"
   <<
     \new Voice = "one" \rhUpper
     \new Voice = "two" \rhLower
@@ -195,7 +191,6 @@ PianoRH = {
 PianoLH = {
   \clef bass
   \global
-  \set Staff.midiInstrument = #"acoustic grand"
   <<
     \new Voice = "one" \lhUpper
     \new Voice = "two" \lhLower
@@ -204,7 +199,6 @@ PianoLH = {
 
 piano = {
   <<
-    \set PianoStaff.instrumentName = #"Piano"
     \new Staff = "upper" \PianoRH
     \new Staff = "lower" \PianoLH
   >>
@@ -217,7 +211,6 @@ Bass = \relative c {
 }
 bass = {
   \global
-  \set Staff.instrumentName = #"Bass"
   \clef bass
   <<
     \Bass
@@ -241,7 +234,6 @@ down = \drummode {
 drumContents = {
   \global
   <<
-    \set DrumStaff.instrumentName = #"Drums"
     \new DrumVoice \up
     \new DrumVoice \down
   >>
@@ -252,19 +244,31 @@ drumContents = {
 \score {
   <<
     \new StaffGroup = "horns" <<
-      \new Staff = "trumpet" \trumpet
-      \new Staff = "altosax" \altoSax
-      \new ChordNames = "barichords" \bariHarmony
-      \new Staff = "barisax" \bariSax
-      \new Staff = "trombone" \trombone
+      \new Staff = "trumpet" \with { instrumentName = #"Trumpet" }
+      \trumpet
+      \new Staff = "altosax" \with { instrumentName = #"Alto Sax" }
+      \altoSax
+      \new ChordNames = "barichords" \with { instrumentName = #"Trumpet" }
+      \bariHarmony
+      \new Staff = "barisax" \with { instrumentName = #"Bari Sax" }
+      \bariSax
+      \new Staff = "trombone" \with { instrumentName = #"Trombone" }
+      \trombone
     >>
 
     \new StaffGroup = "rhythm" <<
       \new ChordNames = "chords" \gtrHarmony
-      \new Staff = "guitar" \guitar
-      \new PianoStaff = "piano" \piano
-      \new Staff = "bass" \bass
-      \new DrumStaff \drumContents
+      \new Staff = "guitar" \with { instrumentName = #"Guitar" }
+      \guitar
+      \new PianoStaff = "piano" \with {
+        instrumentName = #"Piano"
+        midiInstrument = #"acoustic grand"
+      }
+      \piano
+      \new Staff = "bass" \with { instrumentName = #"Bass" }
+      \bass
+      \new DrumStaff \with { instrumentName = #"Drums" }
+      \drumContents
     >>
   >>
   \layout {