5 This template demonstrates the use of nested @code{StaffGroup}
6 and @code{GrandStaff} contexts to sub-group instruments of the same
7 type together, and the use of @code{\transpose} for transposing
8 instuments so that all the music can be entered in the same key of
11 doctitle = "Orchestra, choir and piano template"
14 fluteMusic = \relative c' { c1 d }
15 saxMusic = \transpose bes c' { \key c \major \relative c' { c1 d } }
16 oboeMusic = \relative c' { c1 d }
17 clarinetMusic = \transpose a c' { \key c \major \relative c' { c1 d } }
18 bassoonMusic = \transpose a c' { \key c \major \relative c { c1 d } }
19 trumpetMusic = \transpose bes c' { \key c \major \relative c' { c1 d } }
20 tromboneMusic = \relative c { c1 d }
21 hornOneMusic = \transpose f c' { \key c \major \relative { c1 d } }
22 hornTwoMusic = \transpose f c' { \key c \major \relative c { c1 d } }
23 sopranoMusic = \relative c'' { c1 d }
24 sopranoLyrics = \lyricmode { Sop -- ra }
25 altoOneMusic = \relative c' { c1 d }
26 altoOneLyrics = \lyricmode { A -- one }
27 altoTwoMusic = \relative c' { c1 d }
28 altoTwoLyrics = \lyricmode { A -- two }
29 tenorMusic = \relative c' { c1 d }
30 tenorLyrics = \lyricmode { Ten -- or }
31 pianoRHMusic = \relative c' { c1 d }
32 pianoLHMusic = \relative c { c1 d }
35 << % Start full staff group
36 \new StaffGroup << % Woodwinds
38 \set Staff.instrumentName = "Flute"
43 \set Staff.instrumentName = \markup { \concat {"B" \flat} "Sax" }
47 \set Staff.instrumentName = "Oboe"
50 \new Staff { % Clarinet in A
51 \set Staff.instrumentName = "Clarinet"
55 \new Staff { % Bassoon
56 \set Staff.instrumentName = "Bassoon"
61 \new StaffGroup << % Start Brass group
62 \new Staff { % Trumpet
63 \set Staff.instrumentName = "Trumpet"
66 \new Staff { % Trombone
67 \set Staff.instrumentName = "Trombone"
71 \new GrandStaff << % Horns need a GrandStaff (same instrument)
73 \set Staff.instrumentName = "Horn 1"
77 \set Staff.instrumentName = "Horn 2"
85 \set Staff.instrumentName = "S"
86 \new Voice = "soprano"
89 \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
90 \new GrandStaff \with { \accepts Lyrics } <<
92 \set Staff.instrumentName = "A1"
93 \new Voice = "altoOne"
96 \new Lyrics \lyricsto "altoOne" { \altoOneLyrics }
98 \set Staff.instrumentName = "A2"
99 \new Voice = "altoTwo"
102 \new Lyrics \lyricsto "altoTwo" { \altoTwoLyrics }
105 \set Staff.instrumentName = "T"
110 \new Lyrics \lyricsto "tenor" { \tenorLyrics }
112 \new PianoStaff \with { \consists Instrument_name_engraver } <<
113 \set PianoStaff.instrumentName = "Piano"
114 \new Staff { \pianoRHMusic }
120 >> % End full staff group