]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs: LM Templates: add hymn tune template
authorTrevor Daniels <t.daniels@treda.co.uk>
Mon, 16 Aug 2010 09:11:18 +0000 (10:11 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Mon, 16 Aug 2010 09:14:09 +0000 (10:14 +0100)
Documentation/learning/templates.itely
Documentation/snippets/hymn-template.ly [new file with mode: 0644]
Documentation/snippets/new/hymn-template.ly [new file with mode: 0644]

index 2940a0d88f54e6d4bd009f5208e8b568de228819..b7ceef9fe2f7fc0ecb389dceea2e3a006befc2b8 100644 (file)
@@ -115,6 +115,11 @@ beautiful printed scores!
 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
 {vocal-ensemble-template-with-verse-and-refrain.ly}
 
+@appendixsubsec Hymn tunes
+
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
+{hymn-template.ly}
+
 
 @node Orchestral templates
 @appendixsec Orchestral templates
diff --git a/Documentation/snippets/hymn-template.ly b/Documentation/snippets/hymn-template.ly
new file mode 100644 (file)
index 0000000..a9b37b8
--- /dev/null
@@ -0,0 +1,106 @@
+% Do not edit this file; it is automatically
+% generated from Documentation\snippets\new
+% This file is in the public domain.
+%% Note: this file works from version 2.13.31
+\version "2.13.31"
+\header {
+  lsrtags = "vocal-music, template"
+  texidoc = "
+This code shows one way of setting out a hymn tune when each line
+starts and ends with a partial measure.  It also shows how to add
+the verses as stand-alone text under the music.
+
+"
+  doctitle = "Hymn template"
+} % begin verbatim
+
+
+Timeline = {
+  \time 4/4
+  \tempo 4=96
+  \partial 2
+  s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||" \break
+  s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||"
+}
+
+SopranoMusic = \relative g' {
+  g4 g | g g g g | g g g g | g g g g | g2
+  g4 g | g g g g | g g g g | g g g g | g2
+}
+
+AltoMusic = \relative c' {
+  d4 d | d d d d | d d d d | d d d d | d2
+  d4 d | d d d d | d d d d | d d d d | d2
+}
+
+TenorMusic = \relative a {
+  b4 b | b b b b | b b b b | b b b b | b2
+  b4 b | b b b b | b b b b | b b b b | b2
+}
+
+BassMusic =  \relative g {
+  g4 g | g g g g | g g g g | g g g g | g2
+  g4 g | g g g g | g g g g | g g g g | g2
+}
+
+global = {
+ \key g \major
+}
+
+\score {  % Start score
+  <<
+    \new PianoStaff <<  % Start pianostaff
+      \new Staff <<  % Start Staff = RH
+        \global
+        \clef "treble"
+        \new Voice = "Soprano" <<  % Start Voice = "Soprano"
+          \Timeline
+          \voiceOne
+          \SopranoMusic
+        >>  % End Voice = "Soprano"
+        \new Voice = "Alto" <<  % Start Voice = "Alto"
+          \Timeline
+          \voiceTwo
+          \AltoMusic
+        >>  % End Voice = "Alto"
+      >>  % End Staff = RH
+      \new Staff <<  % Start Staff = LH
+        \global
+        \clef "bass"
+        \new Voice = "Tenor" <<  % Start Voice = "Tenor"
+          \Timeline
+          \voiceOne
+          \TenorMusic
+        >>  % End Voice = "Tenor"
+        \new Voice = "Bass" <<  % Start Voice = "Bass"
+          \Timeline
+          \voiceTwo
+          \BassMusic
+        >>  % End Voice = "Bass"
+      >>  % End Staff = LH
+    >>  % End pianostaff
+  >>
+}  % End score
+
+\markup {
+  \fill-line {
+    ""
+    {
+      \column {
+        \left-align {
+          "This is line one of the first verse"
+          "This is line two of the same"
+          "And here's line three of the first verse"
+          "And the last line of the same"
+        }
+      }
+    }
+    ""
+  }
+}
+
+\paper {  % Start paper block
+  indent = 0     % don't indent first system
+  line-width = 130   % shorten line length to suit music
+  ragged-bottom = ##f   % don't justify systems on page
+}  % End paper block
diff --git a/Documentation/snippets/new/hymn-template.ly b/Documentation/snippets/new/hymn-template.ly
new file mode 100644 (file)
index 0000000..b638572
--- /dev/null
@@ -0,0 +1,101 @@
+\version "2.13.31"
+\header {
+  lsrtags = "vocal-music, template"
+  texidoc = "
+This code shows one way of setting out a hymn tune when each line
+starts and ends with a partial measure.  It also shows how to add
+the verses as stand-alone text under the music.
+
+"
+  doctitle = "Hymn template"
+}
+
+Timeline = {
+  \time 4/4
+  \tempo 4=96
+  \partial 2
+  s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||" \break
+  s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||"
+}
+
+SopranoMusic = \relative g' {
+  g4 g | g g g g | g g g g | g g g g | g2
+  g4 g | g g g g | g g g g | g g g g | g2
+}
+
+AltoMusic = \relative c' {
+  d4 d | d d d d | d d d d | d d d d | d2
+  d4 d | d d d d | d d d d | d d d d | d2
+}
+
+TenorMusic = \relative a {
+  b4 b | b b b b | b b b b | b b b b | b2
+  b4 b | b b b b | b b b b | b b b b | b2
+}
+
+BassMusic =  \relative g {
+  g4 g | g g g g | g g g g | g g g g | g2
+  g4 g | g g g g | g g g g | g g g g | g2
+}
+
+global = {
+ \key g \major
+}
+
+\score {  % Start score
+  <<
+    \new PianoStaff <<  % Start pianostaff
+      \new Staff <<  % Start Staff = RH
+        \global
+        \clef "treble"
+        \new Voice = "Soprano" <<  % Start Voice = "Soprano"
+          \Timeline
+          \voiceOne
+          \SopranoMusic
+        >>  % End Voice = "Soprano"
+        \new Voice = "Alto" <<  % Start Voice = "Alto"
+          \Timeline
+          \voiceTwo
+          \AltoMusic
+        >>  % End Voice = "Alto"
+      >>  % End Staff = RH
+      \new Staff <<  % Start Staff = LH
+        \global
+        \clef "bass"
+        \new Voice = "Tenor" <<  % Start Voice = "Tenor"
+          \Timeline
+          \voiceOne
+          \TenorMusic
+        >>  % End Voice = "Tenor"
+        \new Voice = "Bass" <<  % Start Voice = "Bass"
+          \Timeline
+          \voiceTwo
+          \BassMusic
+        >>  % End Voice = "Bass"
+      >>  % End Staff = LH
+    >>  % End pianostaff
+  >>
+}  % End score
+
+\markup {
+  \fill-line {
+    ""
+    {
+      \column {
+        \left-align {
+          "This is line one of the first verse"
+          "This is line two of the same"
+          "And here's line three of the first verse"
+          "And the last line of the same"
+        }
+      }
+    }
+    ""
+  }
+}
+
+\paper {  % Start paper block
+  indent = 0     % don't indent first system
+  line-width = 130   % shorten line length to suit music
+  ragged-bottom = ##f   % don't justify systems on page
+}  % End paper block