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 #(set-global-staff-size 17)
26 \override InstrumentName #'self-alignment-X = #CENTER
30 fluteMusic = \relative c { \key c \major c'1 d }
31 oboeMusic = \relative c { \key c \major c'1 d }
32 clarinetMusic = \relative c { \key c \major c'1 d }
33 bassoonMusic = \relative c { \clef bass \key c \major c1 d }
34 trumpetMusic = \relative c { \key c \major c''1 d }
35 tromboneMusic = \relative c { \key c \major c1 d }
36 hornIMusic = \relative c { \key c \major c'1 d }
37 hornIIMusic = \relative c { \key c \major c1 d }
38 percussionMusic = \relative c { \key c \major c1 d }
39 sopranoMusic = \relative c'' {\key c \major c1 d }
40 sopranoLyrics = \lyricmode { Sop -- ra }
41 altoIMusic = \relative c' { \key c \major c1 d }
42 altoILyrics = \lyricmode { A -- one }
43 altoIIMusic = \relative c' { \key c \major c1 d }
44 altoIILyrics = \lyricmode { A -- two }
45 tenorMusic = \relative c' { \key c \major c1 d }
46 tenorLyrics = \lyricmode { Ten -- or }
47 pianoRHMusic = \relative c { \key c \major c'1 d }
48 pianoLHMusic = \relative c { \key c \major c1 d }
49 violinIMusic = \relative c { \key c \major c'1 d }
50 violinIIMusic = \relative c { \key c \major c'1 d }
51 violaMusic = \relative c { \clef alto \key c \major c'1 d }
52 celloMusic = \relative c { \clef bass \key c \major c1 d }
53 bassMusic = \relative c { \clef "bass_8" \key c \major c,1 d }
56 \new GrandStaff = "GrandStaff_score" <<
57 \new StaffGroup = "StaffGroup_woodwinds" <<
58 \new Staff = "Staff_flute" {
59 \set Staff.instrumentName = "Flute"
62 \new Staff = "Staff_oboe" {
63 \set Staff.instrumentName = "Oboe"
66 \new Staff = "Staff_clarinet" {
67 \set Staff.instrumentName = \markup \concat { "Clarinet in B" \flat }
69 \transpose bes c' \clarinetMusic
71 \new Staff = "Staff_bassoon" {
72 \set Staff.instrumentName = "Bassoon"
76 \new StaffGroup = "StaffGroup_brass" <<
78 \new Staff = "Staff_hornI" {
79 \set Staff.instrumentName = "Horn I"
81 \transpose f c' \hornIMusic
83 \new Staff = "Staff_hornII" {
84 \set Staff.instrumentName = "Horn II"
87 \transpose f c' \hornIIMusic
90 \new Staff = "Staff_trumpet" {
91 \set Staff.instrumentName = "Trumpet in C"
94 \new Staff = "Staff_trombone" {
95 \set Staff.instrumentName = "Trombone"
100 \new RhythmicStaff = "RhythmicStaff_percussion" <<
101 \set RhythmicStaff.instrumentName = "Percussion"
104 \new PianoStaff \with { \consists Instrument_name_engraver } <<
105 \set PianoStaff.instrumentName = "Piano"
106 \new Staff { \pianoRHMusic }
112 \new ChoirStaff = "ChoirStaff_choir" <<
113 \new Staff = "Staff_soprano" {
114 \set Staff.instrumentName = "Soprano"
115 \new Voice = "soprano"
118 \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
119 \new GrandStaff = "GrandStaff_altos" \with { \accepts Lyrics } <<
120 \new Staff = "Staff_altoI" {
121 \set Staff.instrumentName = "Alto I"
125 \new Lyrics \lyricsto "altoI" { \altoILyrics }
126 \new Staff = "Staff_altoII" {
127 \set Staff.instrumentName = "Alto II"
128 \new Voice = "altoII"
131 \new Lyrics \lyricsto "altoII" { \altoIILyrics }
133 \new Staff = "Staff_tenor" {
134 \set Staff.instrumentName = "Tenor"
139 \new Lyrics \lyricsto "tenor" { \tenorLyrics }
141 \new StaffGroup = "StaffGroup_strings" <<
142 \new GrandStaff = "GrandStaff_horns" <<
143 \new Staff = "Staff_violinI" {
144 \set Staff.instrumentName = "Violin I"
147 \new Staff = "Staff_violinII" {
148 \set Staff.instrumentName = "Violin II"
152 \new Staff = "Staff_viola" {
153 \set Staff.instrumentName = "Viola"
156 \new Staff = "Staff_cello" {
157 \set Staff.instrumentName = "Cello"
160 \new Staff = "Staff_bass" {
161 \set Staff.instrumentName = "Double Bass"