]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/orchestra,-choir-and-piano-template.ly
e3b6eff96372d43b43449a4326853c5b619dc94c
[lilypond.git] / Documentation / snippets / orchestra,-choir-and-piano-template.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "pitches, staff-notation, template, vocal-music"
11
12   texidoc = "
13 This template demonstrates the use of nested @code{StaffGroup} and
14 @code{GrandStaff} contexts to sub-group instruments of the same type
15 together, and a way to use @code{\\transpose} so that variables hold
16 music for transposing instruments at concert pitch.
17
18 "
19   doctitle = "Orchestra choir and piano template"
20 } % begin verbatim
21
22 #(set-global-staff-size 17)
23 \paper {
24   paper-height = 10\cm
25   indent = 3.0\cm  % space for instrumentName
26   short-indent = 1.5\cm  % space for shortInstrumentName
27 }
28
29 fluteMusic = \relative c' { \key g \major g'1 b }
30 % Pitches as written on a manuscript for Clarinet in A
31 % are transposed to concert pitch.
32 clarinetMusic = \transpose c' a
33   \relative c'' { \key bes \major bes1 d }
34 trumpetMusic = \relative c { \key g \major g''1 b }
35 % Key signature is often omitted for horns
36 hornMusic = \transpose c' f
37   \relative c { d'1 fis }
38 percussionMusic = \relative c { \key g \major g1 b }
39 sopranoMusic = \relative c'' { \key g \major g'1 b }
40 sopranoLyrics = \lyricmode { Lyr -- ics }
41 altoIMusic = \relative c' { \key g \major g'1 b }
42 altoIIMusic = \relative c' { \key g \major g'1 b }
43 altoILyrics =  \sopranoLyrics
44 altoIILyrics = \lyricmode { Ah -- ah }
45 tenorMusic = \relative c' { \clef "treble_8" \key g \major g1 b }
46 tenorLyrics = \sopranoLyrics
47 pianoRHMusic = \relative c { \key g \major g''1 b }
48 pianoLHMusic = \relative c { \clef bass \key g \major g1 b }
49 violinIMusic = \relative c' { \key g \major g'1 b }
50 violinIIMusic = \relative c' { \key g \major g'1 b }
51 violaMusic = \relative c { \clef alto \key g \major g'1 b }
52 celloMusic = \relative c { \clef bass \key g \major g1 b }
53 bassMusic = \relative c { \clef "bass_8" \key g \major g,1 b }
54
55 \score {
56   <<
57     \new StaffGroup = "StaffGroup_woodwinds" <<
58       \new Staff = "Staff_flute" {
59         \set Staff.instrumentName = #"Flute"
60         % shortInstrumentName, midiInstrument, etc.
61         % may be set here as well
62         \fluteMusic
63       }
64       \new Staff = "Staff_clarinet" {
65         \set Staff.instrumentName =
66         \markup { \concat { "Clarinet in B" \flat } }
67         % Declare that written Middle C in the music
68         %  to follow sounds a concert B flat, for
69         %  output using sounded pitches such as MIDI.
70         \transposition bes
71         % Print music for a B-flat clarinet
72         \transpose bes c' \clarinetMusic
73       }
74     >>
75     \new StaffGroup = "StaffGroup_brass" <<
76       \new Staff = "Staff_hornI" {
77         \set Staff.instrumentName = #"Horn in F"
78         \transposition f
79         \transpose f c' \hornMusic
80       }
81       \new Staff = "Staff_trumpet" {
82         \set Staff.instrumentName = #"Trumpet in  C"
83         \trumpetMusic
84       }
85     >>
86     \new RhythmicStaff = "RhythmicStaff_percussion" <<
87       \set RhythmicStaff.instrumentName = #"Percussion"
88       \percussionMusic
89     >>
90     \new PianoStaff <<
91       \set PianoStaff.instrumentName = #"Piano"
92       \new Staff { \pianoRHMusic }
93       \new Staff { \pianoLHMusic }
94     >>
95     \new ChoirStaff = "ChoirStaff_choir" <<
96       \new Staff = "Staff_soprano" {
97         \set Staff.instrumentName = #"Soprano"
98         \new Voice = "soprano"
99         \sopranoMusic
100       }
101       \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
102       \new GrandStaff = "GrandStaff_altos"
103       \with { \accepts Lyrics } <<
104         \new Staff = "Staff_altoI"  {
105           \set Staff.instrumentName = #"Alto I"
106           \new Voice = "altoI"
107           \altoIMusic
108         }
109         \new Lyrics \lyricsto "altoI" { \altoILyrics }
110         \new Staff = "Staff_altoII" {
111           \set Staff.instrumentName = #"Alto II"
112           \new Voice = "altoII"
113           \altoIIMusic
114         }
115         \new Lyrics \lyricsto "altoII" { \altoIILyrics }
116       >>
117       \new Staff = "Staff_tenor" {
118         \set Staff.instrumentName = #"Tenor"
119         \new Voice = "tenor"
120         \tenorMusic
121       }
122       \new Lyrics \lyricsto "tenor" { \tenorLyrics }
123     >>
124     \new StaffGroup = "StaffGroup_strings" <<
125       \new GrandStaff = "GrandStaff_violins" <<
126         \new Staff = "Staff_violinI" {
127           \set Staff.instrumentName = #"Violin I"
128           \violinIMusic
129         }
130         \new Staff = "Staff_violinII" {
131           \set Staff.instrumentName = #"Violin II"
132           \violinIIMusic
133         }
134       >>
135       \new Staff = "Staff_viola" {
136         \set Staff.instrumentName = #"Viola"
137         \violaMusic
138       }
139       \new Staff = "Staff_cello" {
140         \set Staff.instrumentName = #"Cello"
141         \celloMusic
142       }
143       \new Staff = "Staff_bass" {
144         \set Staff.instrumentName = #"Double Bass"
145         \bassMusic
146       }
147     >>
148   >>
149   \layout { }
150 }