4 lsrtags = "preparing-parts, template, unfretted-strings"
7 The @qq{String quartet template} snippet produces a nice string
8 quartet, but what if you needed to print parts? This new template
9 demonstrates how to use the @code{\\tag} feature to easily split a
10 piece into individual parts.
12 You need to split this template into separate files; the filenames are
13 contained in comments at the beginning of each file. @code{piece.ly}
14 contains all the music definitions. The other files – @code{score.ly},
15 @code{vn1.ly}, @code{vn2.ly}, @code{vla.ly}, and @code{vlc.ly} –
16 produce the appropriate part.
19 Do not forget to remove specified comments when using separate files!
22 doctitle = "String quartet template with separate parts"
26 %%%%% (This is the global definitions file)
34 Violinone = \new Voice {
42 Violintwo = \new Voice {
70 \tag #'score \tag #'vn1
71 \new Staff \with { instrumentName = "Violin 1" }
72 << \global \Violinone >>
74 \tag #'score \tag #'vn2
75 \new Staff \with { instrumentName = "Violin 2" }
76 << \global \Violintwo>>
78 \tag #'score \tag #'vla
79 \new Staff \with { instrumentName = "Viola" }
82 \tag #'score \tag #'vlc
83 \new Staff \with { instrumentName = "Cello" }
88 % These are the other files you need to save on your computer
91 % (This is the main file)
93 % uncomment the line below when using a separate file
96 #(set-global-staff-size 14)
99 \new StaffGroup \keepWithTag #'score \music
105 %{ Uncomment this block when using separate files
108 % (This is the Violin 1 part file)
112 \keepWithTag #'vn1 \music
118 % (This is the Violin 2 part file)
122 \keepWithTag #'vn2 \music
128 % (This is the Viola part file)
132 \keepWithTag #'vla \music
138 % (This is the Cello part file)
142 \keepWithTag #'vlc \music