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