]> git.donarmstrong.com Git - lilypond.git/blob - input/template/satb.ly
* lily/stem.cc (get_default_stem_end_position): use beam_count - 1
[lilypond.git] / input / template / satb.ly
1 \version "1.5.68"
2 \header {
3
4     texidoc = "
5  Example template for a SATB vocal  score.
6
7 }
8
9 sopMusic = \notes  \relative c'' { c4 c [c8( )b] c4 }
10 sopWords = \lyrics { hi4 hi hi hi  }
11
12 altoMusic = \notes  \relative c' { e4 f d e }
13 altoWords =\lyrics { ha4 ha ha ha }
14
15 tenorMusic = \notes \relative c' { g4 a f g }
16 tenorWords = \lyrics { hu4 hu hu hu }
17
18 bassMusic = \notes \relative c { c4 c g c }
19 bassWords = \lyrics { ho4 ho ho ho }
20
21 \score { \notes
22           \context StaffGroup <
23               \property Score.automaticMelismata = ##t
24           \context Lyrics = sopLyrs { s1 }
25           \context Staff = women { s1 }
26           \context Lyrics = altoLyrs { s1 }
27           \context Lyrics = tenorLyrs { s1 }
28           \context Staff = men {\clef bass s1 }
29           \context Lyrics = bassLyrs { s1 }
30           \addlyrics
31                 \context Staff = women \context Voice = VA { \voiceOne \sopMusic }
32                 \context Lyrics = sopLyrs { \sopWords}
33           \addlyrics
34                 \context Staff = women \context Voice = VB { \voiceTwo \altoMusic }
35                 \context Lyrics = altoLyrs { \altoWords}
36           \addlyrics
37                 \context Staff = men \context Voice = VA { \voiceOne \tenorMusic }
38                 \context Lyrics = tenorLyrs { \tenorWords}
39           \addlyrics
40                 \context Staff = men  \context Voice = VB { \voiceTwo \bassMusic }
41                 \context Lyrics = bassLyrs { \bassWords}
42           
43           >
44   \paper {
45     \translator {
46
47         % a little smaller so lyrics can be closer to the staff. 
48         \StaffContext
49         minimumVerticalExtent = #'(-3 . 3) 
50     }
51   }
52 }