]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/string-quartet-template-simple.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / string-quartet-template-simple.ly
index e435da48779125f8785f9fdcb2bb4cdfd6b76035..6e7f6e1a23b201e2de100373bf9480dfbc0dc37e 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 = "really-simple, template, unfretted-strings"
@@ -20,52 +21,45 @@ This template demonstrates a simple string quartet. It also uses a
 global= {
   \time 4/4
   \key c \major
-}
+} % begin verbatim
 
-violinOne = \new Voice \relative c'' {
-  \set Staff.instrumentName = #"Violin 1 "
 
+violinOne = \new Voice \relative c'' {
   c2 d
   e1
-
   \bar "|."
 }
 
 violinTwo = \new Voice \relative c'' {
-  \set Staff.instrumentName = #"Violin 2 "
-
   g2 f
   e1
-
   \bar "|."
 }
 
 viola = \new Voice \relative c' {
-  \set Staff.instrumentName = #"Viola "
   \clef alto
-
   e2 d
   c1
-
   \bar "|."
 }
 
 cello = \new Voice \relative c' {
-  \set Staff.instrumentName = #"Cello "
   \clef bass
-
   c2 b
   a1
-
   \bar "|."
 }
 
 \score {
   \new StaffGroup <<
-    \new Staff << \global \violinOne >>
-    \new Staff << \global \violinTwo >>
-    \new Staff << \global \viola >>
-    \new Staff << \global \cello >>
+    \new Staff \with { instrumentName = "Violin 1" }
+    << \global \violinOne >>
+    \new Staff \with { instrumentName = "Violin 2" }
+    << \global \violinTwo >>
+    \new Staff \with { instrumentName = "Viola" }
+    << \global \viola >>
+    \new Staff \with { instrumentName = "Cello" }
+    << \global \cello >>
   >>
   \layout { }
   \midi { }