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 \\tag feature to easily split a piece into individual
14 You need to split this template into separate files; the filenames are
15 contained in comments at the beginning of each file. piece.ly contains
16 all the music definitions. The other files – score.ly, vn1.ly, vn2.ly,
17 vla.ly, and vlc.ly – produce the appropiate part.
20 Do not forget to remove specified comments when using separate files!
23 doctitle = "String quartet template with separate parts"
26 %%%%% (This is the global definitions file)
33 Violinone = \new Voice { \relative c''{
34 \set Staff.instrumentName = "Violin 1 "
38 \bar "|." }} %*********************************
39 Violintwo = \new Voice { \relative c''{
40 \set Staff.instrumentName = "Violin 2 "
44 \bar "|." }} %*********************************
45 Viola = \new Voice { \relative c' {
46 \set Staff.instrumentName = "Viola "
51 \bar "|." }} %*********************************
52 Cello = \new Voice { \relative c' {
53 \set Staff.instrumentName = "Cello "
58 \bar "|."}} %**********************************
62 \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
63 \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
64 \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
65 \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
69 %%% These are the other files you need to save on your computer
72 %%%%% (This is the main file)
75 %\include "piece.ly" %%% uncomment this line when using a separate file
76 #(set-global-staff-size 14)
78 \new StaffGroup \keepWithTag #'score \music
84 %{ Uncomment this block when using separate files
87 %%%%% (This is the Violin 1 part file)
91 \keepWithTag #'vn1 \music
97 %%%%% (This is the Violin 2 part file)
101 \keepWithTag #'vn2 \music
107 %%%%% (This is the Viola part file)
111 \keepWithTag #'vla \music
117 %%%%% (This is the Cello part file)
121 \keepWithTag #'vlc \music