]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/orchestra,-choir-and-piano-template.ly
LSR: Update.
[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.dsi.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.12.2"
8
9 \header {
10   lsrtags = "pitches, staff-notation, vocal-music, template"
11
12 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
13   texidoces = "
14 Esta plantilla muestra el uso de contextos @code{StaffGroup} y
15 @code{GrandStaff} anidados para sub-agrupar instrumentos del mismo
16 tipo, y una forma de usar @code{\\transpose} de manera que unas
17 variables contengan la música para instrumentos transpositores en
18 afinación de concierto.
19
20 "
21   doctitlees = "Plantilla de orquesta con coro y piano"
22
23 %% Translation of GIT committish: 64feeff58e5ce3397de87188a08ac99f7ef8e37b
24
25   texidocde = "
26 Diese Vorlage zeigt die Benutzung von geschachtelten
27 @code{StaffGroup}- und @code{GrandStaff}-Kontexte, um
28 Instrumente in Untergruppen zu unterteilen, und die
29 Benutzung von @code{\\transpose} für transponierende
30 Instrumente.  Alle Noten werden in C geschrieben.  Noten
31 können in C eingegeben werden, oder auch in der Tonart
32 des Instrumentes: dann müssen sie zuerst nach C transponiert
33 werden, bevor sie einer Variable zugewiesen werden.
34
35 "
36   doctitlede = "Orchester Chor und Klavier"
37
38 %% Translation of GIT committish: bdfe3dc8175a2d7e9ea0800b5b04cfb68fe58a7a
39   texidocfr = "
40 Ce canevas illustre l'utilisation de contextes @code{StaffGroup} pour
41 regrouper les instruments selon leur famille, imbriqués dans un
42 @code{GrandStaff}, ainsi que le recours à la fonction @code{\\transpose}
43 pour les instruments transpositeurs.  Dans tous les identificateurs, la
44 musique est stockée en ut.  Les notes peuvent tout aussi bien être
45 saisies en ut ou dans la tonalité particulière de l'instrument avant
46 d'être transposées puis affectées à une variable.
47
48 "
49   doctitlefr = "Orchestre chœur et piano"
50
51   texidoc = "
52 This template demonstrates the use of nested @code{StaffGroup} and
53 @code{GrandStaff} contexts to sub-group instruments of the same type
54 together, and a way to use @code{\\transpose} so that variables hold
55 music for transposing instruments at concert pitch.
56
57 "
58   doctitle = "Orchestra choir and piano template"
59 } % begin verbatim
60
61 #(set-global-staff-size 17)
62 \paper {
63   indent = 3.0\cm  % space for instrumentName
64   short-indent = 1.5\cm  % space for shortInstrumentName
65 }
66
67 fluteMusic = \relative c' { \key g \major g'1 b }
68 % Pitches as written on a manuscript for Clarinet in A
69 % are transposed to concert pitch.
70 clarinetMusic = \transpose c' a
71   \relative c'' { \key bes \major bes1 d }
72 trumpetMusic = \relative c { \key g \major g''1 b }
73 % Key signature is often omitted for horns
74 hornMusic = \transpose c' f
75   \relative c { d'1 fis }
76 percussionMusic = \relative c { \key g \major g1 b }
77 sopranoMusic = \relative c'' { \key g \major g'1 b }
78 sopranoLyrics = \lyricmode { Lyr -- ics }
79 altoIMusic = \relative c' { \key g \major g'1 b }
80 altoIIMusic = \relative c' { \key g \major g'1 b }
81 altoILyrics =  \sopranoLyrics
82 altoIILyrics = \lyricmode { Ah -- ah }
83 tenorMusic = \relative c' { \clef "treble_8" \key g \major g1 b }
84 tenorLyrics = \sopranoLyrics
85 pianoRHMusic = \relative c { \key g \major g''1 b }
86 pianoLHMusic = \relative c { \clef bass \key g \major g1 b }
87 violinIMusic = \relative c' { \key g \major g'1 b }
88 violinIIMusic = \relative c' { \key g \major g'1 b }
89 violaMusic = \relative c { \clef alto \key g \major g'1 b }
90 celloMusic = \relative c { \clef bass \key g \major g1 b }
91 bassMusic = \relative c { \clef "bass_8" \key g \major g,1 b }
92
93 \score {
94   <<
95     \new StaffGroup = "StaffGroup_woodwinds" <<
96       \new Staff = "Staff_flute" {
97         \set Staff.instrumentName = #"Flute"
98         % shortInstrumentName, midiInstrument, etc.
99         % may be set here as well
100         \fluteMusic
101       }
102       \new Staff = "Staff_clarinet" {
103         \set Staff.instrumentName =
104         \markup { \concat { "Clarinet in B" \flat } }
105         % Declare that written Middle C in the music
106         %  to follow sounds a concert B flat, for
107         %  output using sounded pitches such as MIDI.
108         \transposition bes
109         % Print music for a B-flat clarinet
110         \transpose bes c' \clarinetMusic
111       }
112     >>
113     \new StaffGroup = "StaffGroup_brass" <<
114       \new Staff = "Staff_hornI" {
115         \set Staff.instrumentName = #"Horn in F"
116         \transposition f
117         \transpose f c' \hornMusic
118       }
119       \new Staff = "Staff_trumpet" {
120         \set Staff.instrumentName = #"Trumpet in  C"
121         \trumpetMusic
122       }
123     >>
124     \new RhythmicStaff = "RhythmicStaff_percussion" <<
125       \set RhythmicStaff.instrumentName = #"Percussion"
126       \percussionMusic
127     >>
128     \new PianoStaff <<
129       \set PianoStaff.instrumentName = #"Piano"
130       \new Staff { \pianoRHMusic }
131       \new Staff { \pianoLHMusic }
132     >>
133     \new ChoirStaff = "ChoirStaff_choir" <<
134       \new Staff = "Staff_soprano" {
135         \set Staff.instrumentName = #"Soprano"
136         \new Voice = "soprano"
137         \sopranoMusic
138       }
139       \new Lyrics \lyricsto "soprano" { \sopranoLyrics }
140       \new GrandStaff = "GrandStaff_altos"
141       \with { \accepts Lyrics } <<
142         \new Staff = "Staff_altoI"  {
143           \set Staff.instrumentName = #"Alto I"
144           \new Voice = "altoI"
145           \altoIMusic
146         }
147         \new Lyrics \lyricsto "altoI" { \altoILyrics }
148         \new Staff = "Staff_altoII" {
149           \set Staff.instrumentName = #"Alto II"
150           \new Voice = "altoII"
151           \altoIIMusic
152         }
153         \new Lyrics \lyricsto "altoII" { \altoIILyrics }
154       >>
155       \new Staff = "Staff_tenor" {
156         \set Staff.instrumentName = #"Tenor"
157         \new Voice = "tenor"
158         \tenorMusic
159       }
160       \new Lyrics \lyricsto "tenor" { \tenorLyrics }
161     >>
162     \new StaffGroup = "StaffGroup_strings" <<
163       \new GrandStaff = "GrandStaff_violins" <<
164         \new Staff = "Staff_violinI" {
165           \set Staff.instrumentName = #"Violin I"
166           \violinIMusic
167         }
168         \new Staff = "Staff_violinII" {
169           \set Staff.instrumentName = #"Violin II"
170           \violinIIMusic
171         }
172       >>
173       \new Staff = "Staff_viola" {
174         \set Staff.instrumentName = #"Viola"
175         \violaMusic
176       }
177       \new Staff = "Staff_cello" {
178         \set Staff.instrumentName = #"Cello"
179         \celloMusic
180       }
181       \new Staff = "Staff_bass" {
182         \set Staff.instrumentName = #"Double Bass"
183         \bassMusic
184       }
185     >>
186   >>
187   \layout { }
188 }
189