]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/hymn-template.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / hymn-template.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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.16.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
22 Timeline = {
23   \time 4/4
24   \tempo 4=96
25   \partial 2
26   s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||" \break
27   s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||"
28 }
29
30 SopranoMusic = \relative g' {
31   g4 g | g g g g | g g g g | g g g g | g2
32   g4 g | g g g g | g g g g | g g g g | g2
33 }
34
35 AltoMusic = \relative c' {
36   d4 d | d d d d | d d d d | d d d d | d2
37   d4 d | d d d d | d d d d | d d d d | d2
38 }
39
40 TenorMusic = \relative a {
41   b4 b | b b b b | b b b b | b b b b | b2
42   b4 b | b b b b | b b b b | b b b b | b2
43 }
44
45 BassMusic =  \relative g {
46   g4 g | g g g g | g g g g | g g g g | g2
47   g4 g | g g g g | g g g g | g g g g | g2
48 }
49
50 global = {
51  \key g \major
52 }
53
54 \score {  % Start score
55   <<
56     \new PianoStaff <<  % Start pianostaff
57       \new Staff <<  % Start Staff = RH
58         \global
59         \clef "treble"
60         \new Voice = "Soprano" <<  % Start Voice = "Soprano"
61           \Timeline
62           \voiceOne
63           \SopranoMusic
64         >>  % End Voice = "Soprano"
65         \new Voice = "Alto" <<  % Start Voice = "Alto"
66           \Timeline
67           \voiceTwo
68           \AltoMusic
69         >>  % End Voice = "Alto"
70       >>  % End Staff = RH
71       \new Staff <<  % Start Staff = LH
72         \global
73         \clef "bass"
74         \new Voice = "Tenor" <<  % Start Voice = "Tenor"
75           \Timeline
76           \voiceOne
77           \TenorMusic
78         >>  % End Voice = "Tenor"
79         \new Voice = "Bass" <<  % Start Voice = "Bass"
80           \Timeline
81           \voiceTwo
82           \BassMusic
83         >>  % End Voice = "Bass"
84       >>  % End Staff = LH
85     >>  % End pianostaff
86   >>
87 }  % End score
88
89 \markup {
90   \fill-line {
91     ""
92     {
93       \column {
94         \left-align {
95           "This is line one of the first verse"
96           "This is line two of the same"
97           "And here's line three of the first verse"
98           "And the last line of the same"
99         }
100       }
101     }
102     ""
103   }
104 }
105
106 \paper {  % Start paper block
107   indent = 0     % don't indent first system
108   line-width = 130   % shorten line length to suit music
109 }  % End paper block