]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/orchestra-choir-and-piano-template.ly
439da47a91f49a16da9f4524a7a24cd948c6e1e8
[lilypond.git] / input / lsr / orchestra-choir-and-piano-template.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.12.0"
4 \header {
5   lsrtags = "template"
6   texidoc = "
7 This template demonstrates the use of nested @code{StaffGroup}
8 and @code{GrandStaff} contexts to sub-group instruments of the same
9 type together, and the use of @code{\transpose} for transposing
10 instruments.  All music in variables is stored in C.  Music may be
11 entered in C or, alternatively, entered in the instrument key and
12 transposed to C (see trumpet) before being assigned to a variable.
13 "
14   doctitle = "Orchestra, choir and piano template"
15 } % begin verbatim
16
17
18 fluteMusic    = \relative c' { \key c \major c1 d }
19 saxMusic      = \relative c' { \key c \major c1 d }
20 oboeMusic     = \relative c' { \key c \major c1 d }
21 clarinetMusic = \relative c' { \key c \major c1 d }
22 bassoonMusic  = \relative c  { \key c \major c1 d }
23 trumpetMusic  = \transpose c' bes {
24   \relative c' { \key d \major d1 e }
25 }
26 tromboneMusic = \relative c  { \key c \major c1 d }
27 hornOneMusic  = \relative c' { \key c \major c1 d }
28 hornTwoMusic  = \relative c  { \key c \major c1 d }
29 sopranoMusic  = \relative c'' {\key c \major c1 d }
30 sopranoLyrics = \lyricmode { Sop -- ra }
31 altoOneMusic  = \relative c' { \key c \major c1 d }
32 altoOneLyrics = \lyricmode { A -- one }
33 altoTwoMusic  = \relative c' { \key c \major c1 d }
34 altoTwoLyrics = \lyricmode { A -- two }
35 tenorMusic    = \relative c' { \key c \major c1 d }
36 tenorLyrics   = \lyricmode { Ten -- or }
37 pianoRHMusic  = \relative c' { \key c \major c1 d }
38 pianoLHMusic  = \relative c  { \key c \major c1 d }
39
40 \score {
41   <<  % Start full staff group
42     \new StaffGroup <<  % Woodwinds
43       \new Staff {  % Flute
44         \set Staff.instrumentName = "Flute"
45         \fluteMusic
46       }
47       \new StaffGroup <<
48         \new Staff {  % Bb Sax
49           \set Staff.instrumentName = \markup { \concat {"B" \flat} "Sax" }
50           \transposition bes
51           \transpose bes c' \saxMusic
52         }
53         \new Staff {  % Oboe
54           \set Staff.instrumentName = "Oboe"
55           \oboeMusic
56          }
57         \new Staff {  % Clarinet in A
58           \set Staff.instrumentName = "Clarinet"
59           \transposition a
60           \transpose a c' \clarinetMusic
61         }
62       >>
63       \new Staff {  % Bassoon
64         \set Staff.instrumentName = "Bassoon"
65         \clef bass
66         \transposition a,
67         \transpose a c' \bassoonMusic
68       }
69     >>
70     \new StaffGroup <<  % Start Brass group
71       \new Staff {  % Trumpet
72         \set Staff.instrumentName = "Trumpet"
73         \transposition bes
74         \transpose bes c' \trumpetMusic
75       }
76       \new Staff {  % Trombone
77         \set Staff.instrumentName = "Trombone"
78         \clef bass
79         \tromboneMusic
80       }
81       \new GrandStaff << % Horns need a GrandStaff (same instrument)
82         \new Staff {  % Horn 1
83           \set Staff.instrumentName = "Horn 1"
84           \transposition f
85           \transpose f c' \hornOneMusic
86         }
87         \new Staff {  % Horn 2
88           \set Staff.instrumentName = "Horn 2"
89           \clef bass
90           \transposition f
91           \transpose f c' \hornTwoMusic
92         }
93       >>
94     >>  % End Brass group
95     \new ChoirStaff <<
96       \new Staff {
97         \set Staff.instrumentName = "S"
98         \new Voice = "soprano"
99         \sopranoMusic
100       }
101       \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
102       \new GrandStaff \with { \accepts Lyrics } <<
103         \new Staff  {
104           \set Staff.instrumentName = "A1"
105           \new Voice = "altoOne"
106           \altoOneMusic
107         }
108         \new Lyrics \lyricsto "altoOne" { \altoOneLyrics }
109         \new Staff {
110           \set Staff.instrumentName = "A2"
111           \new Voice = "altoTwo"
112           \altoTwoMusic
113         }
114         \new Lyrics \lyricsto "altoTwo" { \altoTwoLyrics }
115       >>
116       \new Staff {
117         \set Staff.instrumentName = "T"
118         \clef "treble_8"
119         \new Voice = "tenor"
120         \tenorMusic
121       }
122       \new Lyrics \lyricsto "tenor" { \tenorLyrics }
123     >>  % End ChoirStaff
124     \new PianoStaff \with { \consists Instrument_name_engraver } <<
125       \set PianoStaff.instrumentName = "Piano"
126       \new Staff { \pianoRHMusic }
127       \new Staff {
128         \clef bass
129         \pianoLHMusic
130       }
131     >>  % End PianoStaff
132   >>  % End full staff group
133 }
134