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