]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/hymn-template.ly
Docs: Hymn template: ragged-bottom not needed
[lilypond.git] / Documentation / snippets / hymn-template.ly
1 % Do not edit this file; it is automatically
2 % generated from Documentation\snippets\new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.31
5 \version "2.13.31"
6 \header {
7   lsrtags = "vocal-music, template"
8   texidoc = "
9 This code shows one way of setting out a hymn tune when each line
10 starts and ends with a partial measure.  It also shows how to add
11 the verses as stand-alone text under the music.
12
13 "
14   doctitle = "Hymn template"
15 } % begin verbatim
16
17
18 Timeline = {
19   \time 4/4
20   \tempo 4=96
21   \partial 2
22   s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||" \break
23   s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||"
24 }
25
26 SopranoMusic = \relative g' {
27   g4 g | g g g g | g g g g | g g g g | g2
28   g4 g | g g g g | g g g g | g g g g | g2
29 }
30
31 AltoMusic = \relative c' {
32   d4 d | d d d d | d d d d | d d d d | d2
33   d4 d | d d d d | d d d d | d d d d | d2
34 }
35
36 TenorMusic = \relative a {
37   b4 b | b b b b | b b b b | b b b b | b2
38   b4 b | b b b b | b b b b | b b b b | b2
39 }
40
41 BassMusic =  \relative g {
42   g4 g | g g g g | g g g g | g g g g | g2
43   g4 g | g g g g | g g g g | g g g g | g2
44 }
45
46 global = {
47  \key g \major
48 }
49
50 \score {  % Start score
51   <<
52     \new PianoStaff <<  % Start pianostaff
53       \new Staff <<  % Start Staff = RH
54         \global
55         \clef "treble"
56         \new Voice = "Soprano" <<  % Start Voice = "Soprano"
57           \Timeline
58           \voiceOne
59           \SopranoMusic
60         >>  % End Voice = "Soprano"
61         \new Voice = "Alto" <<  % Start Voice = "Alto"
62           \Timeline
63           \voiceTwo
64           \AltoMusic
65         >>  % End Voice = "Alto"
66       >>  % End Staff = RH
67       \new Staff <<  % Start Staff = LH
68         \global
69         \clef "bass"
70         \new Voice = "Tenor" <<  % Start Voice = "Tenor"
71           \Timeline
72           \voiceOne
73           \TenorMusic
74         >>  % End Voice = "Tenor"
75         \new Voice = "Bass" <<  % Start Voice = "Bass"
76           \Timeline
77           \voiceTwo
78           \BassMusic
79         >>  % End Voice = "Bass"
80       >>  % End Staff = LH
81     >>  % End pianostaff
82   >>
83 }  % End score
84
85 \markup {
86   \fill-line {
87     ""
88     {
89       \column {
90         \left-align {
91           "This is line one of the first verse"
92           "This is line two of the same"
93           "And here's line three of the first verse"
94           "And the last line of the same"
95         }
96       }
97     }
98     ""
99   }
100 }
101
102 \paper {  % Start paper block
103   indent = 0     % don't indent first system
104   line-width = 130   % shorten line length to suit music
105 }  % End paper block