]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs: add Anglican psalm template
authorTrevor Daniels <t.daniels@treda.co.uk>
Wed, 25 Aug 2010 16:59:00 +0000 (17:59 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Wed, 25 Aug 2010 16:59:00 +0000 (17:59 +0100)
Documentation/learning/templates.itely
Documentation/snippets/anglican-psalm-template.ly [new file with mode: 0644]
Documentation/snippets/new/anglican-psalm-template.ly [new file with mode: 0644]

index b7ceef9fe2f7fc0ecb389dceea2e3a006befc2b8..776be6e48ef9e4ef33f78218fc04dd44461179f4 100644 (file)
@@ -120,6 +120,11 @@ beautiful printed scores!
 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
 {hymn-template.ly}
 
+@appendixsubsec Psalms
+
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
+{anglican-psalm-template.ly}
+
 
 @node Orchestral templates
 @appendixsec Orchestral templates
diff --git a/Documentation/snippets/anglican-psalm-template.ly b/Documentation/snippets/anglican-psalm-template.ly
new file mode 100644 (file)
index 0000000..f666189
--- /dev/null
@@ -0,0 +1,134 @@
+% 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.30
+
+\version "2.13.30"
+\header {
+  lsrtags = "vocal-music, template"
+  texidoc = "
+This template shows one way of setting out an Anglican psalm chant.
+It also shows how the verses may be added as stand-alone text under
+the music.  The two verses are coded in different styles to
+demonstrate more possibilities.
+
+"
+  doctitle = "Anglican psalm template"
+} % begin verbatim
+
+
+SopranoMusic = \relative g' {
+  g1 | c2 b | a1 | \bar "||"
+  a1 | d2 c | c b | c1 | \bar "||"
+}
+
+AltoMusic = \relative c' {
+  e1 | g2 g | f1 |
+  f1 | f2 e | d d | e1 |
+}
+
+TenorMusic = \relative a {
+  c1 | c2 c | c1 |
+  d1 | g,2 g | g g | g1 |
+}
+
+BassMusic =  \relative c {
+  c1 | e2 e | f1 |
+  d1 | b2 c | g' g | c,1 |
+}
+
+global = {
+ \time 2/2
+}
+
+dot = \markup {
+  \override #'(font-encoding . fetaMusic)
+  \raise #0.7 \lookup #"dots.dot"
+}
+
+tick = \markup {
+  \override #'(font-encoding . fetaMusic)
+  \raise #1 \fontsize #-5 { \lookup #'"scripts.rvarcomma" }
+}
+
+% Use markup to center the chant on the page
+\markup {
+  \fill-line {
+    " "  % left-justified
+
+\score {  % centered
+  <<
+    \new ChoirStaff <<
+      \new Staff <<
+        \global
+        \clef "treble"
+        \new Voice = "Soprano" <<
+          \voiceOne
+          \SopranoMusic
+        >>
+        \new Voice = "Alto" <<
+          \voiceTwo
+          \AltoMusic
+        >>
+      >>
+      \new Staff <<
+        \clef "bass"
+        \global
+        \new Voice = "Tenor" <<
+          \voiceOne
+          \TenorMusic
+        >>
+        \new Voice = "Bass" <<
+          \voiceTwo
+          \BassMusic
+        >>
+      >>
+    >>
+  >>
+  \layout {
+    \context {
+      \Score
+      \override SpacingSpanner
+                #'base-shortest-duration = #(ly:make-moment 1 2)
+    }
+    \context {
+      \Staff
+      \remove Time_signature_engraver
+    }
+  }
+}  % End score
+
+    " "  % right-justified
+  }
+}  % End markup
+
+\markup {
+  \fill-line {
+    \column {
+      \left-align {
+        " " " " " "
+        \line {
+          \fontsize #5 "O"
+          \fontsize #3 "come"
+          \fontsize #0
+          "let us" \bold "sing" "| unto" \dot "the | Lord : let"
+        }
+        \line {
+          "us heartily"
+          \concat { "re" \bold "joice" }
+          "in the | strength of | our"
+        }
+        "sal | vation."
+        " "
+        \line {
+          "    2. Let us come before his presence" \tick "with"
+        }
+        \line {
+          "thanks" \tick "giving * and shew ourselves"
+          \tick "glad in" \tick
+        }
+        "him with psalms."
+      }
+    }
+  }
+}
diff --git a/Documentation/snippets/new/anglican-psalm-template.ly b/Documentation/snippets/new/anglican-psalm-template.ly
new file mode 100644 (file)
index 0000000..c8c570b
--- /dev/null
@@ -0,0 +1,129 @@
+
+\version "2.13.30"
+\header {
+  lsrtags = "vocal-music, template"
+  texidoc = "
+This template shows one way of setting out an Anglican psalm chant.
+It also shows how the verses may be added as stand-alone text under
+the music.  The two verses are coded in different styles to
+demonstrate more possibilities.
+
+"
+  doctitle = "Anglican psalm template"
+}
+
+SopranoMusic = \relative g' {
+  g1 | c2 b | a1 | \bar "||"
+  a1 | d2 c | c b | c1 | \bar "||"
+}
+
+AltoMusic = \relative c' {
+  e1 | g2 g | f1 |
+  f1 | f2 e | d d | e1 |
+}
+
+TenorMusic = \relative a {
+  c1 | c2 c | c1 |
+  d1 | g,2 g | g g | g1 |
+}
+
+BassMusic =  \relative c {
+  c1 | e2 e | f1 |
+  d1 | b2 c | g' g | c,1 |
+}
+
+global = {
+ \time 2/2
+}
+
+dot = \markup {
+  \override #'(font-encoding . fetaMusic)
+  \raise #0.7 \lookup #"dots.dot"
+}
+
+tick = \markup {
+  \override #'(font-encoding . fetaMusic)
+  \raise #1 \fontsize #-5 { \lookup #'"scripts.rvarcomma" }
+}
+
+% Use markup to center the chant on the page
+\markup {
+  \fill-line {
+    " "  % left-justified
+
+\score {  % centered
+  <<
+    \new ChoirStaff <<
+      \new Staff <<
+        \global
+        \clef "treble"
+        \new Voice = "Soprano" <<
+          \voiceOne
+          \SopranoMusic
+        >>
+        \new Voice = "Alto" <<
+          \voiceTwo
+          \AltoMusic
+        >>
+      >>
+      \new Staff <<
+        \clef "bass"
+        \global
+        \new Voice = "Tenor" <<
+          \voiceOne
+          \TenorMusic
+        >>
+        \new Voice = "Bass" <<
+          \voiceTwo
+          \BassMusic
+        >>
+      >>
+    >>
+  >>
+  \layout {
+    \context {
+      \Score
+      \override SpacingSpanner
+                #'base-shortest-duration = #(ly:make-moment 1 2)
+    }
+    \context {
+      \Staff
+      \remove Time_signature_engraver
+    }
+  }
+}  % End score
+
+    " "  % right-justified
+  }
+}  % End markup
+
+\markup {
+  \fill-line {
+    \column {
+      \left-align {
+        " " " " " "
+        \line {
+          \fontsize #5 "O"
+          \fontsize #3 "come"
+          \fontsize #0
+          "let us" \bold "sing" "| unto" \dot "the | Lord : let"
+        }
+        \line {
+          "us heartily"
+          \concat { "re" \bold "joice" }
+          "in the | strength of | our"
+        }
+        "sal | vation."
+        " "
+        \line {
+          "    2. Let us come before his presence" \tick "with"
+        }
+        \line {
+          "thanks" \tick "giving * and shew ourselves"
+          \tick "glad in" \tick
+        }
+        "him with psalms."
+      }
+    }
+  }
+}