]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/hymn-template.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / Documentation / snippets / hymn-template.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.31"
5
6 \header {
7   lsrtags = "vocal-music, template"
8
9 %% Translation of GIT committish: 26375d5016d8d180fc914bfd07cf76f4168f2e37
10
11   texidocfr = "
12 Le code ci-dessous illustre la manière d'agencer un cantique liturgique
13 dans lequel chaque ligne débute et se termine par une mesure incomplète.
14 Vous noterez par ailleurs l'affichage des paroles indépendamment de la
15 musique.
16
17 "
18   doctitlefr = "Modèle pour cantique"
19
20   texidoc = "
21 This code shows one way of setting out a hymn tune when each line
22 starts and ends with a partial measure.  It also shows how to add the
23 verses as stand-alone text under the music.
24
25 "
26   doctitle = "Hymn template"
27 } % begin verbatim
28
29 Timeline = {
30   \time 4/4
31   \tempo 4=96
32   \partial 2
33   s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||" \break
34   s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||"
35 }
36
37 SopranoMusic = \relative g' {
38   g4 g | g g g g | g g g g | g g g g | g2
39   g4 g | g g g g | g g g g | g g g g | g2
40 }
41
42 AltoMusic = \relative c' {
43   d4 d | d d d d | d d d d | d d d d | d2
44   d4 d | d d d d | d d d d | d d d d | d2
45 }
46
47 TenorMusic = \relative a {
48   b4 b | b b b b | b b b b | b b b b | b2
49   b4 b | b b b b | b b b b | b b b b | b2
50 }
51
52 BassMusic =  \relative g {
53   g4 g | g g g g | g g g g | g g g g | g2
54   g4 g | g g g g | g g g g | g g g g | g2
55 }
56
57 global = {
58  \key g \major
59 }
60
61 \score {  % Start score
62   <<
63     \new PianoStaff <<  % Start pianostaff
64       \new Staff <<  % Start Staff = RH
65         \global
66         \clef "treble"
67         \new Voice = "Soprano" <<  % Start Voice = "Soprano"
68           \Timeline
69           \voiceOne
70           \SopranoMusic
71         >>  % End Voice = "Soprano"
72         \new Voice = "Alto" <<  % Start Voice = "Alto"
73           \Timeline
74           \voiceTwo
75           \AltoMusic
76         >>  % End Voice = "Alto"
77       >>  % End Staff = RH
78       \new Staff <<  % Start Staff = LH
79         \global
80         \clef "bass"
81         \new Voice = "Tenor" <<  % Start Voice = "Tenor"
82           \Timeline
83           \voiceOne
84           \TenorMusic
85         >>  % End Voice = "Tenor"
86         \new Voice = "Bass" <<  % Start Voice = "Bass"
87           \Timeline
88           \voiceTwo
89           \BassMusic
90         >>  % End Voice = "Bass"
91       >>  % End Staff = LH
92     >>  % End pianostaff
93   >>
94 }  % End score
95
96 \markup {
97   \fill-line {
98     ""
99     {
100       \column {
101         \left-align {
102           "This is line one of the first verse"
103           "This is line two of the same"
104           "And here's line three of the first verse"
105           "And the last line of the same"
106         }
107       }
108     }
109     ""
110   }
111 }
112
113 \paper {  % Start paper block
114   indent = 0     % don't indent first system
115   line-width = 130   % shorten line length to suit music
116 }  % End paper block