]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/string-quartet-template-with-separate-parts.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / string-quartet-template-with-separate-parts.ly
index 7efde9f3a74876fb837946b8c8558646fdb3e4d4..e4e82c5ec0b84f08bf40d9c11430b5eea6d08e02 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 = "preparing-parts, template, unfretted-strings"
@@ -34,52 +35,74 @@ Do not forget to remove specified comments when using separate files!
 global= {
   \time 4/4
   \key c \major
-}
+} % begin verbatim
+
 
-Violinone = \new Voice { \relative c''{
-  \set Staff.instrumentName = #"Violin 1 "
 
-  c2 d e1
+Violinone = \new Voice {
+  \relative c'' {
+    c2 d e1
+    \bar "|."
+  }
+}
 
-\bar "|." }}   %*********************************
-Violintwo = \new Voice { \relative c''{
-  \set Staff.instrumentName = #"Violin 2 "
 
-  g2 f e1
+Violintwo = \new Voice {
+  \relative c'' {
+    g2 f e1
+    \bar "|."
+  }
+}
 
-\bar "|." }}   %*********************************
-Viola = \new Voice { \relative c' {
-  \set Staff.instrumentName = #"Viola "
-  \clef alto
 
-  e2 d c1
+Viola = \new Voice {
+  \relative c' {
+    \clef alto
+    e2 d c1
+    \bar "|."
+  }
+}
 
-\bar "|." }}   %*********************************
-Cello = \new Voice { \relative c' {
-  \set Staff.instrumentName = #"Cello "
-  \clef bass
 
-  c2 b a1
+Cello = \new Voice {
+  \relative c' {
+    \clef bass
+    c2 b a1
+    \bar "|."
+  }
+}
 
-\bar "|."}}   %**********************************
 
 music = {
   <<
-    \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
-    \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
-    \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
-    \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
+    \tag #'score \tag #'vn1
+    \new Staff \with { instrumentName = "Violin 1" }
+    << \global \Violinone >>
+
+    \tag #'score \tag #'vn2
+    \new Staff \with { instrumentName = "Violin 2" }
+    << \global \Violintwo>>
+
+    \tag #'score \tag #'vla
+    \new Staff \with { instrumentName = "Viola" }
+    << \global \Viola>>
+
+    \tag #'score \tag #'vlc
+    \new Staff \with { instrumentName = "Cello" }
+    << \global \Cello >>
   >>
 }
 
-%%% These are the other files you need to save on your computer
+% These are the other files you need to save on your computer
 
-%%%%% score.ly
-%%%%% (This is the main file)
+% score.ly
+% (This is the main file)
 
-%%% uncomment the line below when using a separate file
+% uncomment the line below when using a separate file
 %\include "piece.ly"
+
 #(set-global-staff-size 14)
+
 \score {
   \new StaffGroup \keepWithTag #'score \music
   \layout { }
@@ -89,8 +112,8 @@ music = {
 
 %{ Uncomment this block when using separate files
 
-%%%%% vn1.ly
-%%%%% (This is the Violin 1 part file)
+% vn1.ly
+% (This is the Violin 1 part file)
 
 \include "piece.ly"
 \score {
@@ -99,8 +122,8 @@ music = {
 }
 
 
-%%%%% vn2.ly
-%%%%% (This is the Violin 2 part file)
+% vn2.ly
+% (This is the Violin 2 part file)
 
 \include "piece.ly"
 \score {
@@ -109,8 +132,8 @@ music = {
 }
 
 
-%%%%% vla.ly
-%%%%% (This is the Viola part file)
+% vla.ly
+% (This is the Viola part file)
 
 \include "piece.ly"
 \score {
@@ -119,8 +142,8 @@ music = {
 }
 
 
-%%%%% vlc.ly
-%%%%% (This is the Cello part file)
+% vlc.ly
+% (This is the Cello part file)
 
 \include "piece.ly"
 \score {