]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/orchestra-choir-and-piano-template.ly
Docs: LM App 5.1: typo
[lilypond.git] / input / lsr / orchestra-choir-and-piano-template.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.12.0"
4 \header {
5   lsrtags = "template"
6   texidoc = "
7 This template demonstrates the use of nested @code{StaffGroup}
8 and @code{GrandStaff} contexts to sub-group instruments of the same
9 type together, and the use of @code{\\transpose} for transposing
10 instruments.  All music in variables is stored in C.  Music may be
11 entered in C or, alternatively, entered in the instrument key and
12 transposed to C (see trumpet for an example) before being assigned
13 to a variable.
14 "
15   doctitle = "Orchestra, choir and piano template"
16 } % begin verbatim
17
18
19 fluteMusic    = \relative c' { \key c \major c1 d }
20 saxMusic      = \relative c' { \key c \major c1 d }
21 oboeMusic     = \relative c' { \key c \major c1 d }
22 clarinetMusic = \relative c' { \key c \major c1 d }
23 bassoonMusic  = \relative c  { \key c \major c1 d }
24 trumpetMusic  = \transpose c' bes {
25   \relative c' { \key d \major d1 e }
26 }
27 tromboneMusic = \relative c  { \key c \major c1 d }
28 hornOneMusic  = \relative c' { \key c \major c1 d }
29 hornTwoMusic  = \relative c  { \key c \major c1 d }
30 sopranoMusic  = \relative c'' {\key c \major c1 d }
31 sopranoLyrics = \lyricmode { Sop -- ra }
32 altoOneMusic  = \relative c' { \key c \major c1 d }
33 altoOneLyrics = \lyricmode { A -- one }
34 altoTwoMusic  = \relative c' { \key c \major c1 d }
35 altoTwoLyrics = \lyricmode { A -- two }
36 tenorMusic    = \relative c' { \key c \major c1 d }
37 tenorLyrics   = \lyricmode { Ten -- or }
38 pianoRHMusic  = \relative c' { \key c \major c1 d }
39 pianoLHMusic  = \relative c  { \key c \major c1 d }
40
41 \score {
42   <<  % Start full staff group
43     \new StaffGroup <<  % Woodwinds
44       \new Staff {  % Flute
45         \set Staff.instrumentName = "Flute"
46         \fluteMusic
47       }
48       \new StaffGroup <<
49         \new Staff {  % Bb Sax
50           \set Staff.instrumentName = \markup { \concat {"B" \flat} "Sax" }
51           \transposition bes
52           \transpose bes c' \saxMusic
53         }
54         \new Staff {  % Oboe
55           \set Staff.instrumentName = "Oboe"
56           \oboeMusic
57          }
58         \new Staff {  % Clarinet in A
59           \set Staff.instrumentName = "Clarinet"
60           \transposition a
61           \transpose a c' \clarinetMusic
62         }
63       >>
64       \new Staff {  % Bassoon
65         \set Staff.instrumentName = "Bassoon"
66         \clef bass
67         \transposition a,
68         \transpose a c' \bassoonMusic
69       }
70     >>
71     \new StaffGroup <<  % Start Brass group
72       \new Staff {  % Trumpet
73         \set Staff.instrumentName = "Trumpet"
74         \transposition bes
75         \transpose bes c' \trumpetMusic
76       }
77       \new Staff {  % Trombone
78         \set Staff.instrumentName = "Trombone"
79         \clef bass
80         \tromboneMusic
81       }
82       \new GrandStaff << % Horns need a GrandStaff (same instrument)
83         \new Staff {  % Horn 1
84           \set Staff.instrumentName = "Horn 1"
85           \transposition f
86           \transpose f c' \hornOneMusic
87         }
88         \new Staff {  % Horn 2
89           \set Staff.instrumentName = "Horn 2"
90           \clef bass
91           \transposition f
92           \transpose f c' \hornTwoMusic
93         }
94       >>
95     >>  % End Brass group
96     \new ChoirStaff <<
97       \new Staff {
98         \set Staff.instrumentName = "S"
99         \new Voice = "soprano"
100         \sopranoMusic
101       }
102       \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
103       \new GrandStaff \with { \accepts Lyrics } <<
104         \new Staff  {
105           \set Staff.instrumentName = "A1"
106           \new Voice = "altoOne"
107           \altoOneMusic
108         }
109         \new Lyrics \lyricsto "altoOne" { \altoOneLyrics }
110         \new Staff {
111           \set Staff.instrumentName = "A2"
112           \new Voice = "altoTwo"
113           \altoTwoMusic
114         }
115         \new Lyrics \lyricsto "altoTwo" { \altoTwoLyrics }
116       >>
117       \new Staff {
118         \set Staff.instrumentName = "T"
119         \clef "treble_8"
120         \new Voice = "tenor"
121         \tenorMusic
122       }
123       \new Lyrics \lyricsto "tenor" { \tenorLyrics }
124     >>  % End ChoirStaff
125     \new PianoStaff \with { \consists Instrument_name_engraver } <<
126       \set PianoStaff.instrumentName = "Piano"
127       \new Staff { \pianoRHMusic }
128       \new Staff {
129         \clef bass
130         \pianoLHMusic
131       }
132     >>  % End PianoStaff
133   >>  % End full staff group
134 }
135