1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
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
15 doctitle = "Orchestra, choir and piano template"
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 }
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 }
42 << % Start full staff group
43 \new StaffGroup << % Woodwinds
45 \set Staff.instrumentName = "Flute"
50 \set Staff.instrumentName = \markup { \concat {"B" \flat} "Sax" }
52 \transpose bes c' \saxMusic
55 \set Staff.instrumentName = "Oboe"
58 \new Staff { % Clarinet in A
59 \set Staff.instrumentName = "Clarinet"
61 \transpose a c' \clarinetMusic
64 \new Staff { % Bassoon
65 \set Staff.instrumentName = "Bassoon"
68 \transpose a c' \bassoonMusic
71 \new StaffGroup << % Start Brass group
72 \new Staff { % Trumpet
73 \set Staff.instrumentName = "Trumpet"
75 \transpose bes c' \trumpetMusic
77 \new Staff { % Trombone
78 \set Staff.instrumentName = "Trombone"
82 \new GrandStaff << % Horns need a GrandStaff (same instrument)
84 \set Staff.instrumentName = "Horn 1"
86 \transpose f c' \hornOneMusic
89 \set Staff.instrumentName = "Horn 2"
92 \transpose f c' \hornTwoMusic
98 \set Staff.instrumentName = "S"
99 \new Voice = "soprano"
102 \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
103 \new GrandStaff \with { \accepts Lyrics } <<
105 \set Staff.instrumentName = "A1"
106 \new Voice = "altoOne"
109 \new Lyrics \lyricsto "altoOne" { \altoOneLyrics }
111 \set Staff.instrumentName = "A2"
112 \new Voice = "altoTwo"
115 \new Lyrics \lyricsto "altoTwo" { \altoTwoLyrics }
118 \set Staff.instrumentName = "T"
123 \new Lyrics \lyricsto "tenor" { \tenorLyrics }
125 \new PianoStaff \with { \consists Instrument_name_engraver } <<
126 \set PianoStaff.instrumentName = "Piano"
127 \new Staff { \pianoRHMusic }
133 >> % End full staff group