]> git.donarmstrong.com Git - lilypond.git/blob - input/new/orchestra-choir-and-piano-template.ly
a97706f139cd6242d1bbcf5c3aac7694420a84f0
[lilypond.git] / input / new / orchestra-choir-and-piano-template.ly
1 \version "2.12.0"
2 \header {
3   lsrtags = "template"
4   texidoc = "
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.
11 "
12   doctitle = "Orchestra, choir and piano template"
13 }
14
15 #(set-global-staff-size 17)
16
17 \paper {
18   indent = 3.0\cm
19   short-indent = 1.5\cm
20 }
21
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 }
46
47 \score {
48   \new GrandStaff = "GrandStaff_score" <<
49     \new StaffGroup = "StaffGroup_woodwinds" <<
50       \new Staff = "Staff_flute" {
51         \set Staff.instrumentName = #"Flute"
52         \fluteMusic
53       }
54       \new Staff = "Staff_oboe" {
55         \set Staff.instrumentName = #"Oboe"
56         \oboeMusic
57       }
58       \new Staff = "Staff_clarinet" {
59         \set Staff.instrumentName = \markup \concat { "Clarinet in B" \flat }
60         \transposition bes
61         \transpose bes c' \clarinetMusic
62       }
63       \new Staff = "Staff_bassoon" {
64         \set Staff.instrumentName = #"Bassoon"
65         \bassoonMusic
66       }
67     >>
68     \new StaffGroup = "StaffGroup_brass" <<
69       \new GrandStaff <<
70         \new Staff = "Staff_hornI" {
71           \set Staff.instrumentName = #"Horn I"
72           \transposition f
73           \transpose f c' \hornIMusic
74         }
75         \new Staff = "Staff_hornII" {
76           \set Staff.instrumentName = #"Horn II"
77           \clef bass
78           \transposition f'
79           \transpose f c \hornIIMusic
80         }
81       >>
82       \new Staff = "Staff_trumpet" {
83         \set Staff.instrumentName = #"Trumpet in C"
84         \trumpetMusic
85       }
86       \new Staff = "Staff_trombone" {
87         \set Staff.instrumentName = #"Trombone"
88         \clef bass
89         \tromboneMusic
90       }
91     >>
92     \new RhythmicStaff = "RhythmicStaff_percussion" <<
93       \set RhythmicStaff.instrumentName = #"Percussion"
94       \percussionMusic
95     >>
96     \new PianoStaff <<
97       \set PianoStaff.instrumentName = #"Piano"
98       \new Staff { \pianoRHMusic }
99       \new Staff {
100         \clef bass
101         \pianoLHMusic
102       }
103     >>
104     \new ChoirStaff = "ChoirStaff_choir" <<
105       \new Staff = "Staff_soprano" {
106         \set Staff.instrumentName = #"Soprano"
107         \new Voice = "soprano"
108         \sopranoMusic
109       }
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"
114           \new Voice = "altoI"
115           \altoIMusic
116         }
117         \new Lyrics \lyricsto "altoI" { \altoILyrics }
118         \new Staff = "Staff_altoII" {
119           \set Staff.instrumentName = #"Alto II"
120           \new Voice = "altoII"
121           \altoIIMusic
122         }
123         \new Lyrics \lyricsto "altoII" { \altoIILyrics }
124       >>
125       \new Staff = "Staff_tenor" {
126         \set Staff.instrumentName = #"Tenor"
127         \clef "treble_8"
128         \new Voice = "tenor"
129         \tenorMusic
130       }
131       \new Lyrics \lyricsto "tenor" { \tenorLyrics }
132     >>
133     \new StaffGroup = "StaffGroup_strings" <<
134       \new GrandStaff = "GrandStaff_violins" <<
135         \new Staff = "Staff_violinI" {
136           \set Staff.instrumentName = #"Violin I"
137           \violinIMusic
138         }
139         \new Staff = "Staff_violinII" {
140           \set Staff.instrumentName = #"Violin II"
141           \violinIIMusic
142         }
143       >>
144       \new Staff = "Staff_viola" {
145         \set Staff.instrumentName = #"Viola"
146         \violaMusic
147       }
148       \new Staff = "Staff_cello" {
149         \set Staff.instrumentName = #"Cello"
150         \celloMusic
151       }
152       \new Staff = "Staff_bass" {
153         \set Staff.instrumentName = #"Double Bass"
154         \bassMusic
155       }
156     >>
157   >>
158 }