]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertical-aligned-staffgroups-without-connecting-systemstartbar.ly
Web-fr: updates browser-language
[lilypond.git] / Documentation / snippets / vertical-aligned-staffgroups-without-connecting-systemstartbar.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.17.19"
8
9 \header {
10   lsrtags = "paper-and-layout, staff-notation, syntax-and-expressions"
11
12   texidoc = "
13 The code of this snippet shows how to achieve vertical aligned
14 StaffGroups with a SystemStartBar for each StaffGroup, but without
15 connecting them. This might be helpful for educational uses, but of
16 course other  utilizations are thinkable.
17
18 "
19   doctitle = "Vertical aligned StaffGroups without connecting SystemStartBar"
20 } % begin verbatim
21
22 % by Thomas Morley
23
24 #(set-global-staff-size 18)
25
26 \paper {
27   indent = 0
28   ragged-right = ##f
29   print-all-headers = ##t
30 }
31
32 \layout {
33   \context {
34     \Staff
35     \consists "Mark_engraver"
36     \override RehearsalMark.self-alignment-X = #LEFT
37   }
38   \context {
39     \StaffGroup
40     systemStartDelimiterHierarchy =
41       #'(SystemStartBrace (SystemStartBracket a b))
42   }
43   \context {
44     \Score
45     \override SystemStartBrace.style = #'bar-line
46     \override SystemStartBar.stencil = ##f
47     \override SystemStartBrace.padding = #-0.1
48     \override SystemStartBrace.thickness = #1.6
49     \remove "Mark_engraver"
50     \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #15
51   }
52 }
53
54 %%%% EXAMPLE
55
56 txt =
57 \lyricmode {
58   Wer4 nur den lie -- ben Gott läßt wal2 -- ten4
59   und4 hof -- fet auf ihn al -- le Zeit2.
60 }
61
62 % First StaffGroup "exercise"
63
64 eI =
65 \relative c' {
66         \mark \markup {
67                 \bold Teacher:
68                 This is a simple setting of the choral. Please improve it.
69                 }
70         \key a\minor
71         \time 4/4
72         \voiceOne
73
74         \partial 4
75         e4
76         a b c b
77         a b gis2
78         e4\fermata g! g f
79         e a a gis
80         a2.\fermata
81         \bar ":|."
82 }
83
84 eII =
85 \relative c' {
86         \key a\minor
87         \time 4/4
88         \voiceTwo
89         \partial 4
90         c4
91         e e e gis
92         a f e2
93         b4 b d d
94         c c d d
95         c2.
96         \bar ":|."
97 }
98
99 eIII =
100 \relative c' {
101         \key a\minor
102         \time 4/4
103         \clef bass
104         \voiceOne
105
106         \partial 4
107         a4
108         c b a b
109         c d b2
110         gis4 g g b
111         c a f e
112         e2.
113 }
114
115 eIV =
116 \relative c' {
117         \key a\minor
118         \time 4/4
119         \clef bass
120         \voiceTwo
121
122         \partial 4
123         a,4
124         a' gis a e
125         a, d e2
126         e,4\fermata e' b g
127         c f d e
128         a,2.\fermata
129         \bar ":|."
130 }
131
132 exercise =
133 \new StaffGroup = "exercise"
134 <<
135
136   \new Staff
137     <<
138       \new Voice \eI
139       \new Voice \eII
140     >>
141
142   \new Lyrics \txt
143
144   \new Staff
145     <<
146       \new Voice \eIII
147       \new Voice \eIV
148     >>
149 >>
150
151 % Second StaffGRoup "simple Bach"
152
153 sbI =
154 \relative c' {
155         \mark \markup { \bold" Pupil:" Here's my version! }
156         \key a\minor
157         \time 4/4
158         \voiceOne
159
160         \partial 4
161         e4
162         a b c b
163         a b gis2
164         e4\fermata g! g f
165         e a a gis
166         a2.\fermata
167         \bar ":|."
168 }
169
170 sbII =
171 \relative c' {
172         \key a\minor
173         \time 4/4
174         \voiceTwo
175         \partial 4
176         c8 d
177         e4 e e8 f g4
178         f f e2
179         b4 b8 c d4 d
180         e8 d c4 b8 c d4
181         c2.
182         \bar ":|."
183 }
184
185 sbIII =
186 \relative c' {
187         \key a\minor
188         \time 4/4
189         \clef bass
190         \voiceOne
191
192         \partial 4
193         a8 b
194         c4 b a b8 c
195         d4 d8 c b2
196         gis4 g g8 a b4
197         b a8 g f4 e
198         e2.
199 }
200
201 sbIV =
202 \relative c' {
203         \key a\minor
204         \time 4/4
205         \clef bass
206         \voiceTwo
207
208         \partial 4
209         a,4
210         a' gis a e
211         f8 e d4 e2
212         e,4\fermata e' b a8 g
213         c4 f8 e d4 e
214         a,2.\fermata
215         \bar ":|."
216 }
217
218 simpleBach =
219 \new StaffGroup = "simple Bach"
220 <<
221
222   \new Staff
223     <<
224       \new Voice \sbI
225       \new Voice \sbII
226     >>
227
228   \new Lyrics \txt
229
230   \new Staff
231     <<
232       \new Voice \sbIII
233       \new Voice \sbIV
234     >>
235 >>
236
237 % Third StaffGroup "chromatic Bach"
238
239 cbI =
240 \relative c' {
241         \mark \markup {
242                 \bold "Teacher:"
243                 \column {
244                         "Well, you simply copied and transposed a version of J.S.Bach."
245                         "Do you know this one?"
246                 }
247         }
248         \key a\minor
249         \time 4/4
250         \voiceOne
251
252         \partial 4
253         e4
254         a b c b
255         a b gis4. fis8
256         e4\fermata g! g f
257         e a a8 b gis4
258         a2.\fermata
259         \bar ":|."
260 }
261
262 cbII =
263 \relative c' {
264         \key a\minor
265         \time 4/4
266         \voiceTwo
267         \partial 4
268         c8 d
269         e4 e e8 fis gis4
270         a8 g! f!4 e2
271         b4 e e d
272         d8[ cis] d dis e fis e4
273         e2.
274         \bar ":|."
275 }
276
277 cbIII =
278 \relative c' {
279         \key a\minor
280         \time 4/4
281         \clef bass
282         \voiceOne
283
284         \partial 4
285         a8 b
286         c[ b] a gis8 a4 d,
287         e8[ e'] d c b4. a8
288         gis4 b c d8 c
289         b[ a] a b c b b c16 d
290         c2.
291 }
292
293 cbIV =
294 \relative c' {
295         \key a\minor
296         \time 4/4
297         \clef bass
298         \voiceTwo
299
300         \partial 4
301         a4
302         c, e a, b
303         c d e2
304         e4\fermata e a b8 c
305         gis[ g] fis f e dis e4
306         a,2.\fermata
307         \bar ":|."
308 }
309
310 chromaticBach =
311 \new StaffGroup = "chromatic Bach"
312 <<
313
314   \new Staff
315     <<
316       \new Voice \cbI
317       \new Voice \cbII
318     >>
319
320   \new Lyrics \txt
321
322   \new Staff
323     <<
324       \new Voice \cbIII
325       \new Voice \cbIV
326     >>
327 >>
328
329
330 % Score
331
332 \score {
333         <<
334         \exercise
335         \simpleBach
336         \chromaticBach
337         >>
338         \header {
339                 title = \markup
340                            \column {
341                              \combine \null \vspace #1
342                              "Exercise: Improve the given choral"
343                              " "
344                             }
345         }
346         \layout {
347                 \context {
348                         \Lyrics
349                         \override LyricText.X-offset = #-1
350                 }
351         }
352 }