4 lsrtags = "pitches, staff-notation, template, vocal-music"
7 This template demonstrates the use of nested @code{StaffGroup} and
8 @code{GrandStaff} contexts to sub-group instruments of the same type
9 together, and a way to use @code{\\transpose} so that variables hold
10 music for transposing instruments at concert pitch.
13 doctitle = "Orchestra choir and piano template"
16 #(set-global-staff-size 17)
18 indent = 3.0\cm % add space for instrumentName
19 short-indent = 1.5\cm % add less space for shortInstrumentName
22 fluteMusic = \relative c' { \key g \major g'1 b }
24 % Pitches as written on a manuscript for Clarinet in A
25 % are transposed to concert pitch.
27 clarinetMusic = \transpose c' a
28 \relative c'' { \key bes \major bes1 d }
30 trumpetMusic = \relative c { \key g \major g''1 b }
32 % Key signature is often omitted for horns
34 hornMusic = \transpose c' f
35 \relative c { d'1 fis }
37 percussionMusic = \relative c { \key g \major g1 b }
39 sopranoMusic = \relative c'' { \key g \major g'1 b }
41 sopranoLyrics = \lyricmode { Lyr -- ics }
43 altoIMusic = \relative c' { \key g \major g'1 b }
45 altoIIMusic = \relative c' { \key g \major g'1 b }
47 altoILyrics = \sopranoLyrics
49 altoIILyrics = \lyricmode { Ah -- ah }
51 tenorMusic = \relative c' { \clef "treble_8" \key g \major g1 b }
53 tenorLyrics = \sopranoLyrics
55 pianoRHMusic = \relative c { \key g \major g''1 b }
57 pianoLHMusic = \relative c { \clef bass \key g \major g1 b }
59 violinIMusic = \relative c' { \key g \major g'1 b }
61 violinIIMusic = \relative c' { \key g \major g'1 b }
63 violaMusic = \relative c { \clef alto \key g \major g'1 b }
65 celloMusic = \relative c { \clef bass \key g \major g1 b }
67 bassMusic = \relative c { \clef "bass_8" \key g \major g,1 b }
71 \new StaffGroup = "StaffGroup_woodwinds" <<
72 \new Staff = "Staff_flute" \with { instrumentName = #"Flute" }
75 \new Staff = "Staff_clarinet" \with {
76 instrumentName = \markup { \concat { "Clarinet in B" \flat } }
79 % Declare that written Middle C in the music
80 % to follow sounds a concert B flat, for
81 % output using sounded pitches such as MIDI.
84 % Print music for a B-flat clarinet
85 \transpose bes c' \clarinetMusic
88 \new StaffGroup = "StaffGroup_brass" <<
89 \new Staff = "Staff_hornI" \with { instrumentName = #"Horn in F" }
91 \transpose f c' \hornMusic
93 \new Staff = "Staff_trumpet" \with { instrumentName = #"Trumpet in C" }
97 \new RhythmicStaff = "RhythmicStaff_percussion"
98 \with { instrumentName = #"Percussion" }
102 \new PianoStaff \with { instrumentName = #"Piano" }
104 \new Staff { \pianoRHMusic }
105 \new Staff { \pianoLHMusic }
107 \new ChoirStaff = "ChoirStaff_choir" <<
108 \new Staff = "Staff_soprano" \with { instrumentName = #"Soprano" }
109 \new Voice = "soprano"
112 \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
113 \new GrandStaff = "GrandStaff_altos"
114 \with { \accepts Lyrics } <<
115 \new Staff = "Staff_altoI" \with { instrumentName = #"Alto I" }
119 \new Lyrics \lyricsto "altoI" { \altoILyrics }
120 \new Staff = "Staff_altoII" \with { instrumentName = #"Alto II" }
121 \new Voice = "altoII"
124 \new Lyrics \lyricsto "altoII" { \altoIILyrics }
127 \new Staff = "Staff_tenor" \with { instrumentName = #"Tenor" }
131 \new Lyrics \lyricsto "tenor" { \tenorLyrics }
133 \new StaffGroup = "StaffGroup_strings" <<
134 \new GrandStaff = "GrandStaff_violins" <<
135 \new Staff = "Staff_violinI" \with { instrumentName = #"Violin I" }
138 \new Staff = "Staff_violinII" \with { instrumentName = #"Violin II" }
142 \new Staff = "Staff_viola" \with { instrumentName = #"Viola" }
145 \new Staff = "Staff_cello" \with { instrumentName = #"Cello" }
148 \new Staff = "Staff_bass" \with { instrumentName = #"Double Bass" }