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) before being assigned to a variable.
14 doctitle = "Orchestra, choir and piano template"
18 fluteMusic = \relative c' { \key c \major c1 d }
19 saxMusic = \relative c' { \key c \major c1 d }
20 oboeMusic = \relative c' { \key c \major c1 d }
21 clarinetMusic = \relative c' { \key c \major c1 d }
22 bassoonMusic = \relative c { \key c \major c1 d }
23 trumpetMusic = \transpose c' bes {
24 \relative c' { \key d \major d1 e }
26 tromboneMusic = \relative c { \key c \major c1 d }
27 hornOneMusic = \relative c' { \key c \major c1 d }
28 hornTwoMusic = \relative c { \key c \major c1 d }
29 sopranoMusic = \relative c'' {\key c \major c1 d }
30 sopranoLyrics = \lyricmode { Sop -- ra }
31 altoOneMusic = \relative c' { \key c \major c1 d }
32 altoOneLyrics = \lyricmode { A -- one }
33 altoTwoMusic = \relative c' { \key c \major c1 d }
34 altoTwoLyrics = \lyricmode { A -- two }
35 tenorMusic = \relative c' { \key c \major c1 d }
36 tenorLyrics = \lyricmode { Ten -- or }
37 pianoRHMusic = \relative c' { \key c \major c1 d }
38 pianoLHMusic = \relative c { \key c \major c1 d }
41 << % Start full staff group
42 \new StaffGroup << % Woodwinds
44 \set Staff.instrumentName = "Flute"
49 \set Staff.instrumentName = \markup { \concat {"B" \flat} "Sax" }
51 \transpose bes c' \saxMusic
54 \set Staff.instrumentName = "Oboe"
57 \new Staff { % Clarinet in A
58 \set Staff.instrumentName = "Clarinet"
60 \transpose a c' \clarinetMusic
63 \new Staff { % Bassoon
64 \set Staff.instrumentName = "Bassoon"
67 \transpose a c' \bassoonMusic
70 \new StaffGroup << % Start Brass group
71 \new Staff { % Trumpet
72 \set Staff.instrumentName = "Trumpet"
74 \transpose bes c' \trumpetMusic
76 \new Staff { % Trombone
77 \set Staff.instrumentName = "Trombone"
81 \new GrandStaff << % Horns need a GrandStaff (same instrument)
83 \set Staff.instrumentName = "Horn 1"
85 \transpose f c' \hornOneMusic
88 \set Staff.instrumentName = "Horn 2"
91 \transpose f c' \hornTwoMusic
97 \set Staff.instrumentName = "S"
98 \new Voice = "soprano"
101 \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
102 \new GrandStaff \with { \accepts Lyrics } <<
104 \set Staff.instrumentName = "A1"
105 \new Voice = "altoOne"
108 \new Lyrics \lyricsto "altoOne" { \altoOneLyrics }
110 \set Staff.instrumentName = "A2"
111 \new Voice = "altoTwo"
114 \new Lyrics \lyricsto "altoTwo" { \altoTwoLyrics }
117 \set Staff.instrumentName = "T"
122 \new Lyrics \lyricsto "tenor" { \tenorLyrics }
124 \new PianoStaff \with { \consists Instrument_name_engraver } <<
125 \set PianoStaff.instrumentName = "Piano"
126 \new Staff { \pianoRHMusic }
132 >> % End full staff group