]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs: LM App A: Add orchestral template
authorTrevor Daniels <t.daniels@treda.co.uk>
Sun, 22 Feb 2009 11:37:52 +0000 (11:37 +0000)
committerTrevor Daniels <t.daniels@treda.co.uk>
Sun, 22 Feb 2009 11:37:52 +0000 (11:37 +0000)
Documentation/user/templates.itely
input/new/orchestra-choir-and-piano-template.ly [new file with mode: 0644]

index 4f091008f23b54b0ddcb9d707cf27fc23ac490be..e947971af5bb8e0581ae8c002138c86fe1ff5d77 100644 (file)
@@ -22,6 +22,7 @@ beautiful printed scores!
 * Piano templates::
 * String quartet::
 * Vocal ensembles::
+* Orchestral templates::
 * Ancient notation templates::
 * Jazz combo::
 * lilypond-book templates::
@@ -110,6 +111,14 @@ beautiful printed scores!
 {vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly}
 
 
+@node Orchestral templates
+@appendixsec Orchestral templates
+
+@appendixsubsec Orchestra, choir and piano
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
+{orchestra-choir-and-piano-template.ly}
+
+
 @c bad node name to avoid node name conflict
 @node Ancient notation templates
 @appendixsec Ancient notation templates
diff --git a/input/new/orchestra-choir-and-piano-template.ly b/input/new/orchestra-choir-and-piano-template.ly
new file mode 100644 (file)
index 0000000..586d065
--- /dev/null
@@ -0,0 +1,122 @@
+\version "2.12.0"
+\header {
+  lsrtags = "template"
+  texidoc = "
+This template demonstrates the use of nested @code{StaffGroup}
+and @code{GrandStaff} contexts to sub-group instruments of the same
+type together, and the use of @code{\transpose} for transposing
+instuments so that all the music can be entered in the same key of
+C.
+"
+  doctitle = "Orchestra, choir and piano template"
+}
+
+fluteMusic    = \relative c' { c1 d }
+saxMusic      = \transpose bes c' { \key c \major \relative c' { c1 d } }
+oboeMusic     = \relative c' { c1 d }
+clarinetMusic = \transpose a c' { \key c \major \relative c' { c1 d } }
+bassoonMusic  = \transpose a c' { \key c \major \relative c { c1 d } }
+trumpetMusic  = \transpose bes c' { \key c \major \relative c' { c1 d } }
+tromboneMusic = \relative c { c1 d }
+hornOneMusic  = \transpose f c' { \key c \major \relative { c1 d } }
+hornTwoMusic  = \transpose f c' { \key c \major \relative c { c1 d } }
+sopranoMusic  = \relative c'' { c1 d }
+sopranoLyrics = \lyricmode { Sop -- ra }
+altoOneMusic  = \relative c' { c1 d }
+altoOneLyrics = \lyricmode { A -- one }
+altoTwoMusic  = \relative c' { c1 d }
+altoTwoLyrics = \lyricmode { A -- two }
+tenorMusic    = \relative c' { c1 d }
+tenorLyrics   = \lyricmode { Ten -- or }
+pianoRHMusic  = \relative c' { c1 d }
+pianoLHMusic  = \relative c { c1 d }
+
+\score {
+  <<  % Start full staff group
+    \new StaffGroup <<  % Woodwinds
+      \new Staff {  % Flute
+        \set Staff.instrumentName = "Flute"
+        \fluteMusic
+      }
+      \new StaffGroup <<
+        \new Staff {  % Bb Sax
+          \set Staff.instrumentName = \markup { \concat {"B" \flat} "Sax" }
+          \saxMusic
+        }
+        \new Staff {  % Oboe
+          \set Staff.instrumentName = "Oboe"
+          \oboeMusic
+         }
+        \new Staff {  % Clarinet in A
+          \set Staff.instrumentName = "Clarinet"
+          \clarinetMusic
+        }
+      >>
+      \new Staff {  % Bassoon
+        \set Staff.instrumentName = "Bassoon"
+        \clef bass
+        \bassoonMusic
+      }
+    >>
+    \new StaffGroup <<  % Start Brass group
+      \new Staff {  % Trumpet
+        \set Staff.instrumentName = "Trumpet"
+        \trumpetMusic
+      }
+      \new Staff {  % Trombone
+        \set Staff.instrumentName = "Trombone"
+        \clef bass
+        \tromboneMusic
+      }
+      \new GrandStaff << % Horns need a GrandStaff (same instrument)
+        \new Staff {  % Horn 1
+          \set Staff.instrumentName = "Horn 1"
+          \hornOneMusic
+        }
+        \new Staff {  % Horn 2
+          \set Staff.instrumentName = "Horn 2"
+          \clef bass
+          \hornTwoMusic
+        }
+      >>
+    >>  % End Brass group
+    \new ChoirStaff <<
+      \new Staff {
+        \set Staff.instrumentName = "S"
+        \new Voice = "soprano"
+        \sopranoMusic
+      }
+      \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
+      \new GrandStaff \with { \accepts Lyrics } <<
+        \new Staff  {
+          \set Staff.instrumentName = "A1"
+          \new Voice = "altoOne"
+          \altoOneMusic
+        }
+        \new Lyrics \lyricsto "altoOne" { \altoOneLyrics }
+        \new Staff {
+          \set Staff.instrumentName = "A2"
+          \new Voice = "altoTwo"
+          \altoTwoMusic
+        }
+        \new Lyrics \lyricsto "altoTwo" { \altoTwoLyrics }
+      >>
+      \new Staff {
+        \set Staff.instrumentName = "T"
+        \clef "treble_8"
+        \new Voice = "tenor"
+        \tenorMusic
+      }
+      \new Lyrics \lyricsto "tenor" { \tenorLyrics }
+    >>  % End ChoirStaff
+    \new PianoStaff \with { \consists Instrument_name_engraver } <<
+      \set PianoStaff.instrumentName = "Piano"
+      \new Staff { \pianoRHMusic }
+      \new Staff {
+        \clef bass
+        \pianoLHMusic
+      }
+    >>  % End PianoStaff
+  >>  % End full staff group
+}
+