]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/string-quartet-template-with-separate-parts.ly
Merge master into nested-bookparts
[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.62"
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 %%%%% piece.ly
63 %%%%% (This is the global definitions file)
64
65 global= {
66   \time 4/4
67   \key c \major
68 }
69
70 Violinone = \new Voice { \relative c''{
71   \set Staff.instrumentName = #"Violin 1 "
72
73   c2 d e1
74
75 \bar "|." }}   %*********************************
76 Violintwo = \new Voice { \relative c''{
77   \set Staff.instrumentName = #"Violin 2 "
78
79   g2 f e1
80
81 \bar "|." }}   %*********************************
82 Viola = \new Voice { \relative c' {
83   \set Staff.instrumentName = #"Viola "
84   \clef alto
85
86   e2 d c1
87
88 \bar "|." }}   %*********************************
89 Cello = \new Voice { \relative c' {
90   \set Staff.instrumentName = #"Cello "
91   \clef bass
92
93   c2 b a1
94
95 \bar "|."}}   %**********************************
96
97 music = {
98   <<
99     \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
100     \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
101     \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
102     \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
103   >>
104 }
105
106 %%% These are the other files you need to save on your computer
107
108 %%%%% score.ly
109 %%%%% (This is the main file)
110
111
112 %\include "piece.ly"             %%% uncomment this line when using a separate file
113 #(set-global-staff-size 14)
114 \score {
115   \new StaffGroup \keepWithTag #'score \music
116   \layout { }
117   \midi { }
118 }
119
120
121 %{ Uncomment this block when using separate files
122
123 %%%%% vn1.ly
124 %%%%% (This is the Violin 1 part file)
125
126 \include "piece.ly"
127 \score {
128   \keepWithTag #'vn1 \music
129   \layout { }
130 }
131
132
133 %%%%% vn2.ly
134 %%%%% (This is the Violin 2 part file)
135
136 \include "piece.ly"
137 \score {
138   \keepWithTag #'vn2 \music
139   \layout { }
140 }
141
142
143 %%%%% vla.ly
144 %%%%% (This is the Viola part file)
145
146 \include "piece.ly"
147 \score {
148   \keepWithTag #'vla \music
149   \layout { }
150 }
151
152
153 %%%%% vlc.ly
154 %%%%% (This is the Cello part file)
155
156 \include "piece.ly"
157 \score {
158   \keepWithTag #'vlc \music
159   \layout { }
160 }
161
162 %}