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 before being assigned to a variable.
12 doctitle = "Orchestra, choir and piano template"
15 #(set-global-staff-size 17)
22 fluteMusic = \relative c { \key c \major c'1 d }
23 oboeMusic = \relative c { \key c \major c'1 d }
24 clarinetMusic = \relative c { \key c \major c'1 d }
25 bassoonMusic = \relative c { \clef bass \key c \major c1 d }
26 trumpetMusic = \relative c { \key c \major c''1 d }
27 tromboneMusic = \relative c { \key c \major c1 d }
28 hornIMusic = \relative c { c'1 d }
29 hornIIMusic = \relative c { c1 d }
30 percussionMusic = \relative c { \key c \major c1 d }
31 sopranoMusic = \relative c'' { \key c \major c1 d }
32 sopranoLyrics = \lyricmode { Sop -- ra }
33 altoIMusic = \relative c' { \key c \major c1 d }
34 altoILyrics = \lyricmode { A -- one }
35 altoIIMusic = \relative c' { \key c \major c1 d }
36 altoIILyrics = \lyricmode { A -- two }
37 tenorMusic = \relative c' { \key c \major c1 d }
38 tenorLyrics = \lyricmode { Ten -- or }
39 pianoRHMusic = \relative c { \key c \major c'1 d }
40 pianoLHMusic = \relative c { \key c \major c1 d }
41 violinIMusic = \relative c { \key c \major c'1 d }
42 violinIIMusic = \relative c { \key c \major c'1 d }
43 violaMusic = \relative c { \clef alto \key c \major c'1 d }
44 celloMusic = \relative c { \clef bass \key c \major c1 d }
45 bassMusic = \relative c { \clef "bass_8" \key c \major c,1 d }
48 \new GrandStaff = "GrandStaff_score" <<
49 \new StaffGroup = "StaffGroup_woodwinds" <<
50 \new Staff = "Staff_flute" {
51 \set Staff.instrumentName = #"Flute"
54 \new Staff = "Staff_oboe" {
55 \set Staff.instrumentName = #"Oboe"
58 \new Staff = "Staff_clarinet" {
59 \set Staff.instrumentName = \markup \concat { "Clarinet in B" \flat }
61 \transpose bes c' \clarinetMusic
63 \new Staff = "Staff_bassoon" {
64 \set Staff.instrumentName = #"Bassoon"
68 \new StaffGroup = "StaffGroup_brass" <<
70 \new Staff = "Staff_hornI" {
71 \set Staff.instrumentName = #"Horn I"
73 \transpose f c' \hornIMusic
75 \new Staff = "Staff_hornII" {
76 \set Staff.instrumentName = #"Horn II"
79 \transpose f c \hornIIMusic
82 \new Staff = "Staff_trumpet" {
83 \set Staff.instrumentName = #"Trumpet in C"
86 \new Staff = "Staff_trombone" {
87 \set Staff.instrumentName = #"Trombone"
92 \new RhythmicStaff = "RhythmicStaff_percussion" <<
93 \set RhythmicStaff.instrumentName = #"Percussion"
97 \set PianoStaff.instrumentName = #"Piano"
98 \new Staff { \pianoRHMusic }
104 \new ChoirStaff = "ChoirStaff_choir" <<
105 \new Staff = "Staff_soprano" {
106 \set Staff.instrumentName = #"Soprano"
107 \new Voice = "soprano"
110 \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
111 \new GrandStaff = "GrandStaff_altos" \with { \accepts Lyrics } <<
112 \new Staff = "Staff_altoI" {
113 \set Staff.instrumentName = #"Alto I"
117 \new Lyrics \lyricsto "altoI" { \altoILyrics }
118 \new Staff = "Staff_altoII" {
119 \set Staff.instrumentName = #"Alto II"
120 \new Voice = "altoII"
123 \new Lyrics \lyricsto "altoII" { \altoIILyrics }
125 \new Staff = "Staff_tenor" {
126 \set Staff.instrumentName = #"Tenor"
131 \new Lyrics \lyricsto "tenor" { \tenorLyrics }
133 \new StaffGroup = "StaffGroup_strings" <<
134 \new GrandStaff = "GrandStaff_violins" <<
135 \new Staff = "Staff_violinI" {
136 \set Staff.instrumentName = #"Violin I"
139 \new Staff = "Staff_violinII" {
140 \set Staff.instrumentName = #"Violin II"
144 \new Staff = "Staff_viola" {
145 \set Staff.instrumentName = #"Viola"
148 \new Staff = "Staff_cello" {
149 \set Staff.instrumentName = #"Cello"
152 \new Staff = "Staff_bass" {
153 \set Staff.instrumentName = #"Double Bass"