]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/string-quartet-template-with-separate-parts.ly
Add a TODO comment re grace note spacing.
[lilypond.git] / input / lsr / string-quartet-template-with-separate-parts.ly
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 \version "2.11.35"
4
5 \header {
6   lsrtags = "strings, template"
7  texidoc = "
8 The \"String quartet template\" snippet produces a nice string quartet,
9 but what if you needed to print parts? This new template demonstrates
10 how to use the \\tag feature to easily split a piece into individual
11 parts.
12
13 You need to split this template into separate files; the filenames are
14 contained in comments at the beginning of each file. piece.ly contains
15 all the music definitions. The other files – score.ly, vn1.ly, vn2.ly,
16 vla.ly, and vlc.ly – produce the appropiate part.
17
18
19 Do not forget to remove specified comments when using separate files! 
20 " }
21 % begin verbatim
22 %%%%% piece.ly
23 %%%%% (This is the global definitions file)
24
25 global= {
26   \time 4/4
27   \key c \major
28 }
29
30 Violinone = \new Voice { \relative c''{
31   \set Staff.instrumentName = "Violin 1 "
32
33   c2 d e1
34
35 \bar "|." }}   %*********************************
36 Violintwo = \new Voice { \relative c''{
37   \set Staff.instrumentName = "Violin 2 "
38
39   g2 f e1
40
41 \bar "|." }}   %*********************************
42 Viola = \new Voice { \relative c' {
43   \set Staff.instrumentName = "Viola "
44   \clef alto
45
46   e2 d c1
47
48 \bar "|." }}   %*********************************
49 Cello = \new Voice { \relative c' {
50   \set Staff.instrumentName = "Cello     "
51   \clef bass
52
53   c2 b a1
54
55 \bar "|."}}   %**********************************
56
57 music = {
58   <<
59     \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
60     \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
61     \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
62     \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
63   >>
64 }
65
66 %%% These are the other files you need to save on your computer
67
68 %%%%% score.ly
69 %%%%% (This is the main file)
70
71
72 %\include "piece.ly"             %%% uncomment this line when using a separate file
73 #(set-global-staff-size 14)
74 \score {
75   \new StaffGroup \keepWithTag #'score \music
76   \layout { }
77   \midi { }
78 }
79
80
81 %{ Uncomment this block when using separate files
82
83 %%%%% vn1.ly
84 %%%%% (This is the Violin 1 part file)
85
86 \include "piece.ly"
87 \score {
88   \keepWithTag #'vn1 \music
89   \layout { }
90 }
91
92
93 %%%%% vn2.ly
94 %%%%% (This is the Violin 2 part file)
95
96 \include "piece.ly"
97 \score {
98   \keepWithTag #'vn2 \music
99   \layout { }
100 }
101
102
103 %%%%% vla.ly
104 %%%%% (This is the Viola part file)
105
106 \include "piece.ly"
107 \score {
108   \keepWithTag #'vla \music
109   \layout { }
110 }
111
112
113 %%%%% vlc.ly
114 %%%%% (This is the Cello part file)
115
116 \include "piece.ly"
117 \score {
118   \keepWithTag #'vlc \music
119   \layout { }
120 }
121
122 %}