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