]> git.donarmstrong.com Git - lilypond.git/blob - input/new/orchestra-choir-and-piano-template.ly
Merge commit 'origin/dev/jneeman' into systems-per-page
[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 (see trumpet for an example) before being assigned
11 to a variable.
12 "
13   doctitle = "Orchestra, choir and piano template"
14 }
15
16 #(set-global-staff-size 17)
17
18 \paper {
19   indent = 3.0\cm
20   short-indent = 1.5\cm
21 }
22
23 \layout {
24    \context {
25      \Score
26      \override InstrumentName #'self-alignment-X = #CENTER
27    }
28 }
29
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 }
54
55 \score {
56   \new GrandStaff = "GrandStaff_score" <<
57     \new StaffGroup = "StaffGroup_woodwinds" <<
58       \new Staff = "Staff_flute" {
59         \set Staff.instrumentName = "Flute"
60         \fluteMusic
61       }
62       \new Staff = "Staff_oboe" {
63         \set Staff.instrumentName = "Oboe"
64         \oboeMusic
65       }
66       \new Staff = "Staff_clarinet" {
67         \set Staff.instrumentName = \markup \concat { "Clarinet in B" \flat }
68         \transposition bes
69         \transpose bes c' \clarinetMusic
70       }
71       \new Staff = "Staff_bassoon" {
72         \set Staff.instrumentName = "Bassoon"
73         \bassoonMusic
74       }
75     >>
76     \new StaffGroup = "StaffGroup_brass" <<
77       \new GrandStaff <<
78         \new Staff = "Staff_hornI" {
79           \set Staff.instrumentName = "Horn I"
80           \transposition f
81           \transpose f c' \hornIMusic
82         }
83         \new Staff = "Staff_hornII" {
84           \set Staff.instrumentName = "Horn II"
85           \clef bass
86           \transposition f
87           \transpose f c' \hornIIMusic
88         }
89       >>
90       \new Staff = "Staff_trumpet" {
91         \set Staff.instrumentName = "Trumpet in C"
92         \trumpetMusic
93       }
94       \new Staff = "Staff_trombone" {
95         \set Staff.instrumentName = "Trombone"
96         \clef bass
97         \tromboneMusic
98       }
99     >>
100     \new RhythmicStaff = "RhythmicStaff_percussion" <<
101       \set RhythmicStaff.instrumentName = "Percussion"
102       \percussionMusic
103     >>
104     \new PianoStaff \with { \consists Instrument_name_engraver } <<
105       \set PianoStaff.instrumentName = "Piano"
106       \new Staff { \pianoRHMusic }
107       \new Staff {
108         \clef bass
109         \pianoLHMusic
110       }
111     >>
112     \new ChoirStaff = "ChoirStaff_choir" <<
113       \new Staff = "Staff_soprano" {
114         \set Staff.instrumentName = "Soprano"
115         \new Voice = "soprano"
116         \sopranoMusic
117       }
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"
122           \new Voice = "altoI"
123           \altoIMusic
124         }
125         \new Lyrics \lyricsto "altoI" { \altoILyrics }
126         \new Staff = "Staff_altoII" {
127           \set Staff.instrumentName = "Alto II"
128           \new Voice = "altoII"
129           \altoIIMusic
130         }
131         \new Lyrics \lyricsto "altoII" { \altoIILyrics }
132       >>
133       \new Staff = "Staff_tenor" {
134         \set Staff.instrumentName = "Tenor"
135         \clef "treble_8"
136         \new Voice = "tenor"
137         \tenorMusic
138       }
139       \new Lyrics \lyricsto "tenor" { \tenorLyrics }
140     >>
141     \new StaffGroup = "StaffGroup_strings" <<
142       \new GrandStaff = "GrandStaff_horns" <<
143         \new Staff = "Staff_violinI" {
144           \set Staff.instrumentName = "Violin I"
145           \violinIMusic
146         }
147         \new Staff = "Staff_violinII" {
148           \set Staff.instrumentName = "Violin II"
149           \violinIIMusic
150         }
151       >>
152       \new Staff = "Staff_viola" {
153         \set Staff.instrumentName = "Viola"
154         \violaMusic
155       }
156       \new Staff = "Staff_cello" {
157         \set Staff.instrumentName = "Cello"
158         \celloMusic
159       }
160       \new Staff = "Staff_bass" {
161         \set Staff.instrumentName = "Double Bass"
162         \bassMusic
163       }
164     >>
165   >>
166 }
167