]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/templates.itely
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond...
[lilypond.git] / Documentation / user / templates.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @c This file is part of lilypond.tely
3 @ignore
4     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5
6     When revising a translation, copy the HEAD committish of the
7     version that you are working on.  See TRANSLATION for details.
8 @end ignore
9
10 @node Templates
11 @appendix Templates
12
13 This section of the manual contains templates with the LilyPond score
14 already set up for you.  Just add notes, run LilyPond, and enjoy
15 beautiful printed scores!
16
17 @c bad node name for ancient notation to avoid confict
18 @menu
19 * Single staff::                
20 * Piano templates::             
21 * String quartet::              
22 * Vocal ensembles::             
23 * Ancient notation templates::  
24 * Jazz combo::                  
25 * Lilypond-book templates::     
26 @end menu
27
28
29 @node Single staff
30 @appendixsec Single staff
31
32 @appendixsubsec Notes only
33
34 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,addversion]
35 {single-staff-template-with-only-notes.ly}
36
37
38 @appendixsubsec Notes and lyrics
39
40 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,addversion]
41 {single-staff-template-with-notes-and-lyrics.ly}
42
43 @appendixsubsec Notes and chords
44
45 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
46 {single-staff-template-with-notes-and-chords.ly}
47
48 @appendixsubsec Notes, lyrics, and chords.
49
50 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
51 {single-staff-template-with-notes,-lyrics,-and-chords.ly}
52
53
54 @node Piano templates
55 @appendixsec Piano templates
56
57 @appendixsubsec Solo piano
58
59 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
60 {piano-template-simple.ly}
61
62 @appendixsubsec Piano and melody with lyrics
63
64 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
65 {piano-template-with-melody-and-lyrics.ly}
66
67 @appendixsubsec Piano centered lyrics
68
69 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
70 {piano-template-with-centered-lyrics.ly}
71
72 @appendixsubsec Piano centered dynamics
73
74 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
75 {piano-template-with-centered-dynamics.ly}
76
77
78 @node String quartet
79 @appendixsec String quartet
80
81 @appendixsubsec String quartet
82
83 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
84 {string-quartet-template-simple.ly}
85
86 @appendixsubsec String quartet parts
87
88 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
89 {string-quartet-template-with-separate-parts.ly}
90
91
92 @node Vocal ensembles
93 @appendixsec Vocal ensembles
94
95 @appendixsubsec SATB vocal score
96
97 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
98 {vocal-ensemble-template.ly}
99
100 @appendixsubsec SATB vocal score and automatic piano reduction
101
102 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
103 {vocal-ensemble-template-with-automatic-piano-reduction.ly}
104
105 @appendixsubsec SATB with aligned contexts
106
107 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
108 {vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly}
109
110
111 @c bad node name to avoid node name confict
112 @node Ancient notation templates
113 @appendixsec Ancient notation templates
114
115 @appendixsubsec Transcription of mensural music
116
117 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
118 {ancient-notation-template----modern-transcription-of-mensural-music.ly}
119
120 @appendixsubsec Gregorian transcription template
121
122 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
123 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
124
125 @node Jazz combo
126 @appendixsec Jazz combo
127
128 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
129 {jazz-combo-template.ly}
130
131
132
133
134 @ignore
135 This isn't very useful, and only duplicates material in
136 "global issues".  And if this info changes, this section often
137 gets forgotten.
138
139 @no de Other templates
140 @se ction Other templates
141 @su bsection All headers
142
143 This template displays all available headers.  Some of them are only
144 used in the Mutopia project; they don't affect the printed output at
145 all.  They are used if you want the piece to be listed with different
146 information in the Mutopia database than you wish to have printed on the
147 music.  For example, Mutopia lists the composer of the famous D major
148 violin concerto as TchaikovskyPI, whereas perhaps you wish to print
149 "Petr Tchaikowski" on your music.
150
151 @ The `line-width' is for \header.
152 @li lypond[quote,verbatim,ragged-right,line-width]
153 \version "2.11.38"
154 \header {
155   dedication = "dedication"
156   title = "Title"
157   subtitle = "Subtitle"
158   subsubtitle = "Subsubtitle"
159   composer = "Composer (xxxx-yyyy)"
160   opus = "Opus 0"
161   piece = "Piece I"
162   meter = "meter"
163   instrument = "Instrument"
164   arranger = "Arranger"
165   poet = "Poet"
166   texttranslator = "Translator"
167   copyright = "public domain"
168
169   % These are headers used by the Mutopia Project
170   % http://www.mutopiaproject.org/
171   mutopiatitle = ""
172   mutopiacomposer = ""
173   mutopiapoet = ""
174   mutopiainstrument = ""
175   date = "composer's dates"
176   source = "urtext "
177   maintainer = "your name here"
178   maintainerEmail = "your email here"
179   maintainerWeb = "your home page"
180   lastupdated = "2004/Aug/26"
181 }
182
183 \score {
184   { c'4 }
185   \header {
186     piece = "piece1"
187     opus = "opus1"
188   }
189 }
190
191 \score {
192   { c'4 }
193   \header {
194     piece = "piece2"
195     opus = "opus2"
196   }
197 }
198 @end lilypond
199 @end ignore
200
201
202 @node Lilypond-book templates
203 @appendixsec Lilypond-book templates
204
205 These templates are for use with @code{lilypond-book}.  If you're not familiar
206 with this program, please refer to @rprogram{LilyPond-book}.
207
208 @appendixsubsec LaTeX
209
210 You can include LilyPond fragments in a LaTeX document.
211
212 @example
213 \documentclass[]@{article@}
214
215 \begin@{document@}
216
217 Normal LaTeX text.
218
219 \begin@{lilypond@}
220 \relative c'' @{
221 a4 b c d
222 @}
223 \end@{lilypond@}
224
225 More LaTeX text.
226
227 \begin@{lilypond@}
228 \relative c'' @{
229 d4 c b a
230 @}
231 \end@{lilypond@}
232 \end@{document@}
233 @end example
234
235 @appendixsubsec Texinfo
236
237 You can include LilyPond fragments in Texinfo; in fact, this entire manual
238 is written in Texinfo.
239
240 @example
241 \input texinfo
242 @@node Top
243
244 Texinfo text
245
246 @@lilypond[verbatim,fragment,ragged-right]
247 a4 b c d
248 @@end lilypond
249
250 More Texinfo text
251
252 @@lilypond[verbatim,fragment,ragged-right]
253 d4 c b a
254 @@end lilypond
255
256 @@bye
257 @end example