1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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, template, unfretted-strings"
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"
32 %%%%% (This is the global definitions file)
39 Violinone = \new Voice { \relative c''{
40 \set Staff.instrumentName = #"Violin 1 "
44 \bar "|." }} %*********************************
45 Violintwo = \new Voice { \relative c''{
46 \set Staff.instrumentName = #"Violin 2 "
50 \bar "|." }} %*********************************
51 Viola = \new Voice { \relative c' {
52 \set Staff.instrumentName = #"Viola "
57 \bar "|." }} %*********************************
58 Cello = \new Voice { \relative c' {
59 \set Staff.instrumentName = #"Cello "
64 \bar "|."}} %**********************************
68 \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
69 \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
70 \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
71 \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
75 %%% These are the other files you need to save on your computer
78 %%%%% (This is the main file)
80 %%% uncomment the line below when using a separate file
82 #(set-global-staff-size 14)
84 \new StaffGroup \keepWithTag #'score \music
90 %{ Uncomment this block when using separate files
93 %%%%% (This is the Violin 1 part file)
97 \keepWithTag #'vn1 \music
103 %%%%% (This is the Violin 2 part file)
107 \keepWithTag #'vn2 \music
113 %%%%% (This is the Viola part file)
117 \keepWithTag #'vla \music
123 %%%%% (This is the Cello part file)
127 \keepWithTag #'vlc \music