1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
6 lsrtags
= "unfretted-strings, template"
9 The \"String quartet template\" snippet produces a nice string quartet,
10 but what if you needed to print parts? This new template demonstrates
11 how to use the @code{\\tag} feature to easily split a piece into
14 You need to split this template into separate files; the filenames are
15 contained in comments at the beginning of each file. @code{piece.ly}
16 contains all the music definitions. The other files – @code{score.ly},
17 @code{vn1.ly}, @code{vn2.ly}, @code{vla.ly}, and @code{vlc.ly} –
18 produce the appropriate part.
21 Do not forget to remove specified comments when using separate files!
24 doctitle
= "String quartet template with separate parts"
27 %%%%% (This is the global definitions file)
34 Violinone
= \new Voice
{ \relative c''{
35 \set Staff
.instrumentName
= #"Violin 1 "
39 \bar "|." }} %*********************************
40 Violintwo
= \new Voice
{ \relative c''{
41 \set Staff
.instrumentName
= #"Violin 2 "
45 \bar "|." }} %*********************************
46 Viola
= \new Voice
{ \relative c' {
47 \set Staff
.instrumentName
= #"Viola "
52 \bar "|." }} %*********************************
53 Cello
= \new Voice
{ \relative c' {
54 \set Staff
.instrumentName
= #"Cello "
59 \bar "|."}} %**********************************
63 \tag #'score
\tag #'vn
1 \new Staff
{ << \global \Violinone >> }
64 \tag #'score
\tag #'vn
2 \new Staff
{ << \global \Violintwo>> }
65 \tag #'score
\tag #'vla
\new Staff
{ << \global \Viola>> }
66 \tag #'score
\tag #'vlc
\new Staff
{ << \global \Cello>> }
70 %%% These are the other files you need to save on your computer
73 %%%%% (This is the main file)
76 %\include "piece.ly" %%% uncomment this line when using a separate file
77 #(set-global-staff-size
14)
79 \new StaffGroup
\keepWithTag #'score
\music
85 %{ Uncomment this block when using separate files
88 %%%%% (This is the Violin 1 part file)
92 \keepWithTag #'vn1 \music
98 %%%%% (This is the Violin 2 part file)
102 \keepWithTag #'vn2 \music
108 %%%%% (This is the Viola part file)
112 \keepWithTag #'vla \music
118 %%%%% (This is the Cello part file)
122 \keepWithTag #'vlc \music