1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
10 lsrtags = "preparing-parts, unfretted-strings, template"
13 The @qq{String quartet template} snippet produces a nice string
14 quartet, but what if you needed to print parts? This new template
15 demonstrates how to use the @code{\\tag} feature to easily split a
16 piece into individual parts.
18 You need to split this template into separate files; the filenames are
19 contained in comments at the beginning of each file. @code{piece.ly}
20 contains all the music definitions. The other files – @code{score.ly},
21 @code{vn1.ly}, @code{vn2.ly}, @code{vla.ly}, and @code{vlc.ly} –
22 produce the appropriate part.
25 Do not forget to remove specified comments when using separate files!
28 doctitle = "String quartet template with separate parts"
33 %%%%% (This is the global definitions file)
40 Violinone = \new Voice { \relative c''{
41 \set Staff.instrumentName = #"Violin 1 "
45 \bar "|." }} %*********************************
46 Violintwo = \new Voice { \relative c''{
47 \set Staff.instrumentName = #"Violin 2 "
51 \bar "|." }} %*********************************
52 Viola = \new Voice { \relative c' {
53 \set Staff.instrumentName = #"Viola "
58 \bar "|." }} %*********************************
59 Cello = \new Voice { \relative c' {
60 \set Staff.instrumentName = #"Cello "
65 \bar "|."}} %**********************************
69 \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
70 \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
71 \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
72 \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
76 %%% These are the other files you need to save on your computer
79 %%%%% (This is the main file)
81 %%% uncomment the line below when using a separate file
83 #(set-global-staff-size 14)
85 \new StaffGroup \keepWithTag #'score \music
91 %{ Uncomment this block when using separate files
94 %%%%% (This is the Violin 1 part file)
98 \keepWithTag #'vn1 \music
104 %%%%% (This is the Violin 2 part file)
108 \keepWithTag #'vn2 \music
114 %%%%% (This is the Viola part file)
118 \keepWithTag #'vla \music
124 %%%%% (This is the Cello part file)
128 \keepWithTag #'vlc \music