1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.56
11 lsrtags = "preparing-parts, template, unfretted-strings"
14 The @qq{String quartet template} snippet produces a nice string
15 quartet, but what if you needed to print parts? This new template
16 demonstrates how to use the @code{\\tag} feature to easily split a
17 piece into individual parts.
19 You need to split this template into separate files; the filenames are
20 contained in comments at the beginning of each file. @code{piece.ly}
21 contains all the music definitions. The other files – @code{score.ly},
22 @code{vn1.ly}, @code{vn2.ly}, @code{vla.ly}, and @code{vlc.ly} –
23 produce the appropriate part.
26 Do not forget to remove specified comments when using separate files!
29 doctitle = "String quartet template with separate parts"
33 %%%%% (This is the global definitions file)
42 Violinone = \new Voice {
50 Violintwo = \new Voice {
78 \tag #'score \tag #'vn1
79 \new Staff \with { instrumentName = "Violin 1" }
80 << \global \Violinone >>
82 \tag #'score \tag #'vn2
83 \new Staff \with { instrumentName = "Violin 2" }
84 << \global \Violintwo>>
86 \tag #'score \tag #'vla
87 \new Staff \with { instrumentName = "Viola" }
90 \tag #'score \tag #'vlc
91 \new Staff \with { instrumentName = "Cello" }
96 % These are the other files you need to save on your computer
99 % (This is the main file)
101 % uncomment the line below when using a separate file
104 #(set-global-staff-size 14)
107 \new StaffGroup \keepWithTag #'score \music
113 %{ Uncomment this block when using separate files
116 % (This is the Violin 1 part file)
120 \keepWithTag #'vn1 \music
126 % (This is the Violin 2 part file)
130 \keepWithTag #'vn2 \music
136 % (This is the Viola part file)
140 \keepWithTag #'vla \music
146 % (This is the Cello part file)
150 \keepWithTag #'vlc \music