]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/string-quartet-template-with-separate-parts.ly
Merge branch 'stable'
[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.12.0"
4
5 \header {
6   lsrtags = "unfretted-strings, template"
7
8   texidoces = "
9 El fragmento de código \"Plantilla de cuarteto de cuerda\" produce un
10 resultado satisfactorio para el cuarteto, pero ¿y si tenemos que
11 imprimir las particellas? Esta nueva plantilla muestra cómo usar la
12 funcionalidad @code{\\tag} (etiqueta) para dividir fácilmente una
13 pieza en particellas indicviduales.
14
15 Tenemos que dividir esta plantilla en archivos independientes; los
16 nombres de archivo están dentro de los comentarios al principio de
17 cada archivo. @code{piece.ly} contiene todas las definiciones de
18 música. Los otros archivos (@code{score.ly}, @code{vn1.ly},
19 @code{vn2.ly}, @code{vla.ly} y @code{vlc.ly}) producen la particella
20 correspondiente.
21
22 ¡No olvide quitar los comentarios que hemos especificado cuando use
23 los archivos independientes!
24
25 "
26   doctitlees = "Plantilla de cuarteto de cuerda con particellas independientes"
27   
28   texidocde = "
29 Mit diesem Beispiel können Sie ein schönes Streichquartett notieren, 
30 aber wie gehen Sie vor, wenn Sie Stimmen brauchen? Das Beispiel 
31 oben hat gezeigt, wie Sie mit Variablen einzelne Abschnitte getrennt 
32 voneinander notieren können. Im nächsten Beispiel wird nun 
33 gezeigt, wie Sie mit diesen Variablen einzelne Stimmen erstellen.
34
35 Sie müssen das Beispiel in einzelne Dateien aufteilen; die Dateinamen
36 sind in den Kommentaren am Anfang jeder Datei enthalten.  @code{piece.ly}
37 enthält die Noten. Die anderen Dateien -- @code{score.ly},
38 @code{vn1.ly}, @code{vn2.ly}, @code{vla.ly} und
39 @code{vlc.ly} -- erstellen daraus die entsprechenden Stimmen bzw. die 
40 Partitur (@code{score.ly}). Mit @code{\tag} wird den Stimmen ein Name 
41 zugewiesen, auf den zurückgegriffen werden kann.
42 "
43
44   texidoc = "
45 The \"String quartet template\" snippet produces a nice string quartet,
46 but what if you needed to print parts? This new template demonstrates
47 how to use the @code{\\tag} feature to easily split a piece into
48 individual parts.
49
50 You need to split this template into separate files; the filenames are
51 contained in comments at the beginning of each file. @code{piece.ly}
52 contains all the music definitions. The other files – @code{score.ly},
53 @code{vn1.ly}, @code{vn2.ly}, @code{vla.ly}, and @code{vlc.ly} –
54 produce the appropriate part.
55
56
57 Do not forget to remove specified comments when using separate files! 
58
59 "
60   doctitle = "String quartet template with separate parts"
61 } % begin verbatim
62
63 %%%%% piece.ly
64 %%%%% (This is the global definitions file)
65
66 global= {
67   \time 4/4
68   \key c \major
69 }
70
71 Violinone = \new Voice { \relative c''{
72   \set Staff.instrumentName = #"Violin 1 "
73
74   c2 d e1
75
76 \bar "|." }}   %*********************************
77 Violintwo = \new Voice { \relative c''{
78   \set Staff.instrumentName = #"Violin 2 "
79
80   g2 f e1
81
82 \bar "|." }}   %*********************************
83 Viola = \new Voice { \relative c' {
84   \set Staff.instrumentName = #"Viola "
85   \clef alto
86
87   e2 d c1
88
89 \bar "|." }}   %*********************************
90 Cello = \new Voice { \relative c' {
91   \set Staff.instrumentName = #"Cello "
92   \clef bass
93
94   c2 b a1
95
96 \bar "|."}}   %**********************************
97
98 music = {
99   <<
100     \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
101     \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
102     \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
103     \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
104   >>
105 }
106
107 %%% These are the other files you need to save on your computer
108
109 %%%%% score.ly
110 %%%%% (This is the main file)
111
112
113 %\include "piece.ly"             %%% uncomment this line when using a separate file
114 #(set-global-staff-size 14)
115 \score {
116   \new StaffGroup \keepWithTag #'score \music
117   \layout { }
118   \midi { }
119 }
120
121
122 %{ Uncomment this block when using separate files
123
124 %%%%% vn1.ly
125 %%%%% (This is the Violin 1 part file)
126
127 \include "piece.ly"
128 \score {
129   \keepWithTag #'vn1 \music
130   \layout { }
131 }
132
133
134 %%%%% vn2.ly
135 %%%%% (This is the Violin 2 part file)
136
137 \include "piece.ly"
138 \score {
139   \keepWithTag #'vn2 \music
140   \layout { }
141 }
142
143
144 %%%%% vla.ly
145 %%%%% (This is the Viola part file)
146
147 \include "piece.ly"
148 \score {
149   \keepWithTag #'vla \music
150   \layout { }
151 }
152
153
154 %%%%% vlc.ly
155 %%%%% (This is the Cello part file)
156
157 \include "piece.ly"
158 \score {
159   \keepWithTag #'vlc \music
160   \layout { }
161 }
162
163 %}