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.
3 %% Tags: strings, template
7 The \"String quartet template\" snippet produces a nice string quartet,
8 but what if you needed to print parts? This new template demonstrates
9 how to use the \\tag feature to easily split a piece into individual
12 You need to split this template into separate files; the filenames are
13 contained in comments at the beginning of each file. piece.ly contains
14 all the music definitions. The other files – score.ly, vn1.ly, vn2.ly,
15 vla.ly, and vlc.ly – produce the appropiate part.
18 Do not forget to remove specified comments when using separate files!
22 %%%%% (This is the global definitions file)
29 Violinone = \new Voice { \relative c''{
30 \set Staff.instrumentName = "Violin 1 "
34 \bar "|." }} %*********************************
35 Violintwo = \new Voice { \relative c''{
36 \set Staff.instrumentName = "Violin 2 "
40 \bar "|." }} %*********************************
41 Viola = \new Voice { \relative c' {
42 \set Staff.instrumentName = "Viola "
47 \bar "|." }} %*********************************
48 Cello = \new Voice { \relative c' {
49 \set Staff.instrumentName = "Cello "
54 \bar "|."}} %**********************************
58 \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
59 \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
60 \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
61 \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
65 %%% These are the other files you need to save on your computer
68 %%%%% (This is the main file)
71 %\include "piece.ly" %%% uncomment this line when using a separate file
72 #(set-global-staff-size 14)
74 \new StaffGroup \keepWithTag #'score \music
80 %{ Uncomment this block when using separate files
83 %%%%% (This is the Violin 1 part file)
87 \keepWithTag #'vn1 \music
93 %%%%% (This is the Violin 2 part file)
97 \keepWithTag #'vn2 \music
103 %%%%% (This is the Viola part file)
107 \keepWithTag #'vla \music
113 %%%%% (This is the Cello part file)
117 \keepWithTag #'vlc \music