]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/orchestra,-choir-and-piano-template.ly
Merge remote-tracking branch 'origin/master' into translation
[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   indent = 3.0\cm  % space for instrumentName
25   short-indent = 1.5\cm  % space for shortInstrumentName
26 }
27
28 fluteMusic = \relative c' { \key g \major g'1 b }
29 % Pitches as written on a manuscript for Clarinet in A
30 % are transposed to concert pitch.
31 clarinetMusic = \transpose c' a
32   \relative c'' { \key bes \major bes1 d }
33 trumpetMusic = \relative c { \key g \major g''1 b }
34 % Key signature is often omitted for horns
35 hornMusic = \transpose c' f
36   \relative c { d'1 fis }
37 percussionMusic = \relative c { \key g \major g1 b }
38 sopranoMusic = \relative c'' { \key g \major g'1 b }
39 sopranoLyrics = \lyricmode { Lyr -- ics }
40 altoIMusic = \relative c' { \key g \major g'1 b }
41 altoIIMusic = \relative c' { \key g \major g'1 b }
42 altoILyrics =  \sopranoLyrics
43 altoIILyrics = \lyricmode { Ah -- ah }
44 tenorMusic = \relative c' { \clef "treble_8" \key g \major g1 b }
45 tenorLyrics = \sopranoLyrics
46 pianoRHMusic = \relative c { \key g \major g''1 b }
47 pianoLHMusic = \relative c { \clef bass \key g \major g1 b }
48 violinIMusic = \relative c' { \key g \major g'1 b }
49 violinIIMusic = \relative c' { \key g \major g'1 b }
50 violaMusic = \relative c { \clef alto \key g \major g'1 b }
51 celloMusic = \relative c { \clef bass \key g \major g1 b }
52 bassMusic = \relative c { \clef "bass_8" \key g \major g,1 b }
53
54 \score {
55   <<
56     \new StaffGroup = "StaffGroup_woodwinds" <<
57       \new Staff = "Staff_flute" {
58         \set Staff.instrumentName = #"Flute"
59         % shortInstrumentName, midiInstrument, etc.
60         % may be set here as well
61         \fluteMusic
62       }
63       \new Staff = "Staff_clarinet" {
64         \set Staff.instrumentName =
65         \markup { \concat { "Clarinet in B" \flat } }
66         % Declare that written Middle C in the music
67         %  to follow sounds a concert B flat, for
68         %  output using sounded pitches such as MIDI.
69         \transposition bes
70         % Print music for a B-flat clarinet
71         \transpose bes c' \clarinetMusic
72       }
73     >>
74     \new StaffGroup = "StaffGroup_brass" <<
75       \new Staff = "Staff_hornI" {
76         \set Staff.instrumentName = #"Horn in F"
77         \transposition f
78         \transpose f c' \hornMusic
79       }
80       \new Staff = "Staff_trumpet" {
81         \set Staff.instrumentName = #"Trumpet in  C"
82         \trumpetMusic
83       }
84     >>
85     \new RhythmicStaff = "RhythmicStaff_percussion" <<
86       \set RhythmicStaff.instrumentName = #"Percussion"
87       \percussionMusic
88     >>
89     \new PianoStaff <<
90       \set PianoStaff.instrumentName = #"Piano"
91       \new Staff { \pianoRHMusic }
92       \new Staff { \pianoLHMusic }
93     >>
94     \new ChoirStaff = "ChoirStaff_choir" <<
95       \new Staff = "Staff_soprano" {
96         \set Staff.instrumentName = #"Soprano"
97         \new Voice = "soprano"
98         \sopranoMusic
99       }
100       \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
101       \new GrandStaff = "GrandStaff_altos"
102       \with { \accepts Lyrics } <<
103         \new Staff = "Staff_altoI"  {
104           \set Staff.instrumentName = #"Alto I"
105           \new Voice = "altoI"
106           \altoIMusic
107         }
108         \new Lyrics \lyricsto "altoI" { \altoILyrics }
109         \new Staff = "Staff_altoII" {
110           \set Staff.instrumentName = #"Alto II"
111           \new Voice = "altoII"
112           \altoIIMusic
113         }
114         \new Lyrics \lyricsto "altoII" { \altoIILyrics }
115       >>
116       \new Staff = "Staff_tenor" {
117         \set Staff.instrumentName = #"Tenor"
118         \new Voice = "tenor"
119         \tenorMusic
120       }
121       \new Lyrics \lyricsto "tenor" { \tenorLyrics }
122     >>
123     \new StaffGroup = "StaffGroup_strings" <<
124       \new GrandStaff = "GrandStaff_violins" <<
125         \new Staff = "Staff_violinI" {
126           \set Staff.instrumentName = #"Violin I"
127           \violinIMusic
128         }
129         \new Staff = "Staff_violinII" {
130           \set Staff.instrumentName = #"Violin II"
131           \violinIIMusic
132         }
133       >>
134       \new Staff = "Staff_viola" {
135         \set Staff.instrumentName = #"Viola"
136         \violaMusic
137       }
138       \new Staff = "Staff_cello" {
139         \set Staff.instrumentName = #"Cello"
140         \celloMusic
141       }
142       \new Staff = "Staff_bass" {
143         \set Staff.instrumentName = #"Double Bass"
144         \bassMusic
145       }
146     >>
147   >>
148   \layout { }
149 }