]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/string-quartet-template-with-separate-parts.ly
Merge branch 'lilypond/translation' of ssh://trettig@git.sv.gnu.org/srv/git/lilypond...
[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.38"
4
5 \header {
6   lsrtags = "unfretted-strings, template"
7
8   texidoc = "
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
12 parts.
13
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.
18
19
20 Do not forget to remove specified comments when using separate files! 
21
22 "
23   doctitle = "String quartet template with separate parts"
24 } % begin verbatim
25 %%%%% piece.ly
26 %%%%% (This is the global definitions file)
27
28 global= {
29   \time 4/4
30   \key c \major
31 }
32
33 Violinone = \new Voice { \relative c''{
34   \set Staff.instrumentName = "Violin 1 "
35
36   c2 d e1
37
38 \bar "|." }}   %*********************************
39 Violintwo = \new Voice { \relative c''{
40   \set Staff.instrumentName = "Violin 2 "
41
42   g2 f e1
43
44 \bar "|." }}   %*********************************
45 Viola = \new Voice { \relative c' {
46   \set Staff.instrumentName = "Viola "
47   \clef alto
48
49   e2 d c1
50
51 \bar "|." }}   %*********************************
52 Cello = \new Voice { \relative c' {
53   \set Staff.instrumentName = "Cello     "
54   \clef bass
55
56   c2 b a1
57
58 \bar "|."}}   %**********************************
59
60 music = {
61   <<
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>> }
66   >>
67 }
68
69 %%% These are the other files you need to save on your computer
70
71 %%%%% score.ly
72 %%%%% (This is the main file)
73
74
75 %\include "piece.ly"             %%% uncomment this line when using a separate file
76 #(set-global-staff-size 14)
77 \score {
78   \new StaffGroup \keepWithTag #'score \music
79   \layout { }
80   \midi { }
81 }
82
83
84 %{ Uncomment this block when using separate files
85
86 %%%%% vn1.ly
87 %%%%% (This is the Violin 1 part file)
88
89 \include "piece.ly"
90 \score {
91   \keepWithTag #'vn1 \music
92   \layout { }
93 }
94
95
96 %%%%% vn2.ly
97 %%%%% (This is the Violin 2 part file)
98
99 \include "piece.ly"
100 \score {
101   \keepWithTag #'vn2 \music
102   \layout { }
103 }
104
105
106 %%%%% vla.ly
107 %%%%% (This is the Viola part file)
108
109 \include "piece.ly"
110 \score {
111   \keepWithTag #'vla \music
112   \layout { }
113 }
114
115
116 %%%%% vlc.ly
117 %%%%% (This is the Cello part file)
118
119 \include "piece.ly"
120 \score {
121   \keepWithTag #'vlc \music
122   \layout { }
123 }
124
125 %}