]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/vocal-ensemble-template-with-automatic-piano-reduction.ly
9929058bca6205f0019072b99bacd13101a5a040
[lilypond.git] / input / lsr / vocal-ensemble-template-with-automatic-piano-reduction.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.57"
4
5 \header {
6   lsrtags = "vocal-music, keyboards, template"
7
8   texidoc = "
9 This template adds an automatic piano reduction to the standard SATB
10 vocal score demonstrated in \"Vocal ensemble template\". This
11 demonstrates one of the strengths of LilyPond – you can use a music
12 definition more than once. If any changes are made to the vocal notes
13 (say, @code{tenorMusic}), then the changes will also apply to the piano
14 reduction.
15
16 "
17   doctitle = "Vocal ensemble template with automatic piano reduction"
18 } % begin verbatim
19 global = {
20   \key c \major
21   \time 4/4
22 }
23
24 sopMusic = \relative c'' {
25   c4 c c8[( b)] c4
26 }
27 sopWords = \lyricmode {
28   hi hi hi hi
29 }
30
31 altoMusic = \relative c' {
32   e4 f d e
33 }
34 altoWords =\lyricmode {
35   ha ha ha ha
36 }
37
38 tenorMusic = \relative c' {
39   g4 a f g
40 }
41 tenorWords = \lyricmode {
42   hu hu hu hu
43 }
44
45 bassMusic = \relative c {
46   c4 c g c
47 }
48 bassWords = \lyricmode {
49   ho ho ho ho
50 }
51
52 \score {
53   <<
54     \new ChoirStaff <<
55       \new Lyrics = sopranos { s1 }
56       \new Staff = women <<
57         \new Voice = sopranos { \voiceOne << \global \sopMusic >> }
58         \new Voice = altos { \voiceTwo << \global \altoMusic >> }
59       >>
60       \new Lyrics = altos { s1 }
61       \new Lyrics = tenors { s1 }
62       \new Staff = men <<
63         \clef bass
64         \new Voice = tenors { \voiceOne <<\global \tenorMusic >> }
65         \new Voice = basses { \voiceTwo <<\global \bassMusic >> }
66       >>
67       \new Lyrics = basses { s1 }
68       \context Lyrics = sopranos \lyricsto sopranos \sopWords
69       \context Lyrics = altos \lyricsto altos \altoWords
70       \context Lyrics = tenors \lyricsto tenors \tenorWords
71       \context Lyrics = basses \lyricsto basses \bassWords
72     >>
73     \new PianoStaff <<
74       \new Staff <<
75         \set Staff.printPartCombineTexts = ##f
76         \partcombine
77         << \global \sopMusic >>
78         << \global \altoMusic >>
79       >>
80       \new Staff <<
81         \clef bass
82         \set Staff.printPartCombineTexts = ##f
83         \partcombine
84         << \global \tenorMusic >>
85         << \global \bassMusic >>
86       >>
87     >>
88   >>
89   \layout {
90     \context {
91       % a little smaller so lyrics
92       % can be closer to the staff
93       \Staff
94       \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
95     }
96   }
97 }