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 instruments. All music in variables is stored in C. Music may be
9 entered in C or, alternatively, entered in the instrument key and
10 transposed to C (see trumpet for an example) before being assigned
13 doctitle = "Orchestra, choir and piano template"
16 fluteMusic = \relative c' { \key c \major c1 d }
17 saxMusic = \relative c' { \key c \major c1 d }
18 oboeMusic = \relative c' { \key c \major c1 d }
19 clarinetMusic = \relative c' { \key c \major c1 d }
20 bassoonMusic = \relative c { \key c \major c1 d }
21 trumpetMusic = \transpose c' bes {
22 \relative c' { \key d \major d1 e }
24 tromboneMusic = \relative c { \key c \major c1 d }
25 hornOneMusic = \relative c' { \key c \major c1 d }
26 hornTwoMusic = \relative c { \key c \major c1 d }
27 sopranoMusic = \relative c'' {\key c \major c1 d }
28 sopranoLyrics = \lyricmode { Sop -- ra }
29 altoOneMusic = \relative c' { \key c \major c1 d }
30 altoOneLyrics = \lyricmode { A -- one }
31 altoTwoMusic = \relative c' { \key c \major c1 d }
32 altoTwoLyrics = \lyricmode { A -- two }
33 tenorMusic = \relative c' { \key c \major c1 d }
34 tenorLyrics = \lyricmode { Ten -- or }
35 pianoRHMusic = \relative c' { \key c \major c1 d }
36 pianoLHMusic = \relative c { \key c \major c1 d }
39 << % Start full staff group
40 \new StaffGroup << % Woodwinds
42 \set Staff.instrumentName = "Flute"
47 \set Staff.instrumentName = \markup { \concat {"B" \flat} "Sax" }
49 \transpose bes c' \saxMusic
52 \set Staff.instrumentName = "Oboe"
55 \new Staff { % Clarinet in A
56 \set Staff.instrumentName = "Clarinet"
58 \transpose a c' \clarinetMusic
61 \new Staff { % Bassoon
62 \set Staff.instrumentName = "Bassoon"
65 \transpose a c' \bassoonMusic
68 \new StaffGroup << % Start Brass group
69 \new Staff { % Trumpet
70 \set Staff.instrumentName = "Trumpet"
72 \transpose bes c' \trumpetMusic
74 \new Staff { % Trombone
75 \set Staff.instrumentName = "Trombone"
79 \new GrandStaff << % Horns need a GrandStaff (same instrument)
81 \set Staff.instrumentName = "Horn 1"
83 \transpose f c' \hornOneMusic
86 \set Staff.instrumentName = "Horn 2"
89 \transpose f c' \hornTwoMusic
95 \set Staff.instrumentName = "S"
96 \new Voice = "soprano"
99 \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
100 \new GrandStaff \with { \accepts Lyrics } <<
102 \set Staff.instrumentName = "A1"
103 \new Voice = "altoOne"
106 \new Lyrics \lyricsto "altoOne" { \altoOneLyrics }
108 \set Staff.instrumentName = "A2"
109 \new Voice = "altoTwo"
112 \new Lyrics \lyricsto "altoTwo" { \altoTwoLyrics }
115 \set Staff.instrumentName = "T"
120 \new Lyrics \lyricsto "tenor" { \tenorLyrics }
122 \new PianoStaff \with { \consists Instrument_name_engraver } <<
123 \set PianoStaff.instrumentName = "Piano"
124 \new Staff { \pianoRHMusic }
130 >> % End full staff group