]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/invoking.itely
Rearranging, editing, clean-up.
[lilypond.git] / Documentation / user / invoking.itely
1 @c -*- coding: latin-1; mode: texinfo; -*-
2 @node Running LilyPond
3 @chapter Running LilyPond
4
5 This chapter details the technicalities of running LilyPond.
6
7
8 @menu
9 * Invoking lilypond::           
10 * Error messages::              
11 * Updating files with convert-ly::  
12 * Reporting bugs::              
13 * Editor support::              
14 * File structure::              
15 * Including LilyPond files::    
16 @end menu
17
18 @node Invoking lilypond
19 @section Invoking lilypond
20 @cindex Invoking LilyPond
21 @cindex command line options
22 @cindex options, command line
23 @cindex switches
24
25
26 The @code{lilypond} executable may be called as follows from the command line.
27
28 @example
29 lilypond [@var{option}]@dots{} @var{file}@dots{}
30 @end example
31
32
33 When invoked with a filename that has no extension, the @file{.ly}
34 extension is tried first.  To read input from stdin, use a
35 dash (@code{-}) for @var{file}.
36
37 When @file{filename.ly} is processed it will produce
38 @file{filename.tex} as output (or @file{filename.ps} for PostScript
39 output).  If @file{filename.ly} contains more than one @code{\score}
40 block, then the rest of the scores will be output in numbered files,
41 starting with @file{filename-1.tex}.  Several files can be specified;
42 they will each be processed independently.  @footnote{The status of
43 GUILE is not reset after processing a @code{.ly} file, so be careful
44 not to change any system defaults from within Scheme.}
45
46
47 @section Command line options
48
49 The following options are supported:
50
51 @table @code
52
53 @item -e,--evaluate=@var{expr}
54 Evaluate the Scheme @var{expr} before parsing any @file{.ly} files.
55 Multiple @code{-e} options may be given, they will be evaluated
56 sequentially.  The function @code{ly:set-option} allows access to
57 some internal variables.  Use @code{-e '(ly:option-usage)'} for more
58 information.
59
60 @item -f,--format=@var{format}
61 which formats should be written.  Choices are @code{svg}, @code{ps},
62 @code{pdf}, @code{png}, @code{tex}, @code{dvi}.
63
64 @item -b,--backend=@var{format}
65 the output format to use for the back-end.  Choices are
66 @table @code
67 @item tex
68 for @TeX{} output, to be processed with La@TeX{}.  If present, the file
69 @file{file.textmetrics} is read to determine text extents.
70 @item texstr
71 dump text strings to @file{.texstr} file, which can be run through
72 (La)@TeX{}, resulting in a @code{.textmetrics} file, which contains the
73 extents of strings of text.
74 @item ps
75  for PostScript.
76 @cindex PostScript output
77
78   Postscript files include TTF, Type1 and OTF fonts.  No subsetting of
79   these fonts is done.  When using oriental character sets, this can
80   lead to huge files.  
81   
82 @item eps
83  for encapsulated PostScript.  This dumps every page (system) as a separate
84 @file{EPS} file, without fonts, and as one collated @file{EPS} file with
85 all pages (systems) including fonts.
86
87 This mode is used by default by lilypond-book.
88
89 @item svg
90  for SVG (Scalable Vector Graphics)
91 @cindex SVG (Scalable Vector Graphics)
92 @item scm
93  for a dump of the raw, internal Scheme-based drawing commands.
94 @cindex Scheme dump
95 @end table
96  
97 @cindex output format, setting
98
99 @item -d,--define-default=@var{var}=@var{val}
100 This defines an internal variable @var{var} as the Scheme value
101 @var{val}.
102
103 Supported values include:
104 @table @code
105 @item resolution
106 set PNG resolution
107 @item preview-include-book-title
108 include book-titles in preview
109 @end table
110
111 These settings are returned when calling
112 @code{(ly:get-option 'command-line-settings)} from Scheme.
113
114 @item -h,--help
115 Show a summary of usage.
116
117 @item --include, -I=@var{directory}
118 Add @var{directory} to the search path for input files.
119 @cindex file searching
120 @cindex search path
121
122 @item -i,--init=@var{file}
123 Set init file to @var{file} (default: @file{init.ly}).
124
125 @item -o,--output=@var{FILE}
126 Set the default output file to @var{FILE}.  The appropriate
127 suffix will be added (ie @code{.pdf} for pdf, @code{.tex}
128 for tex, etc).
129
130 @item --ps
131 Generate PostScript.
132
133 @item --dvi
134 Generate DVI files.  In this case, the @TeX{} backend should be
135 specified, i.e., @code{-f tex}.
136
137 @item --png
138 Generate pictures of each page, in PNG format.  This implies @code{--ps}.
139
140 @item --pdf
141 Generate PDF.  This implies @code{--ps}.
142
143 @item --preview
144 Generate an output file containing the titles and the first system
145
146 @item --no-pages
147 Do not generate the full pages.  Useful in combination with
148 @code{--preview}.
149
150 @item -s,--safe
151 Do not trust the @code{.ly} input.
152
153 When LilyPond formatting is available through a web server, either the
154 @code{--safe} or the @code{--jail} option @b{MUST} be passed.  The
155 @code{--safe} option will prevent inline Scheme code from wreaking
156 havoc, for example
157
158 When LilyPond formatting is available through a web server, the
159 @code{--safe} @b{MUST} be passed.  This will prevent inline Scheme
160 code from wreaking havoc, for example
161
162 @quotation
163 @verbatim
164 #(system "rm -rf /")
165 {
166   c4^#(ly:export (ly:gulp-file "/etc/passwd"))
167 }
168 @end verbatim
169 @end quotation
170
171 The @code{--safe} option works by evaluating in-line Scheme
172 expressions in a special safe module.  This safe module is derived from
173 GUILE @file{safe-r5rs} module, but adds a number of functions of the
174 LilyPond API.  These functions are listed in @file{scm/@/safe@/-lily@/.scm}.
175
176 In addition, @code{--safe} disallows @code{\include} directives and
177 disables the use of backslashes in @TeX{} strings.
178
179 In @code{--safe} mode, it is not possible to import LilyPond variables
180 into Scheme.
181
182 @code{--safe} does @emph{not} detect resource overuse.  It is still
183 possible to make the program hang indefinitely, for example by feeding
184 cyclic data structures into the backend.  Therefore, if using LilyPond
185 on a publicly accessible webserver, the process should be limited in
186 both CPU and memory usage.
187
188 Note that @code{--safe} will prevent many useful LilyPond snippets from
189 being compiled.  For a softer but secure alternative you can use the
190 @code{--jail} option.
191
192
193 @item -j,--jail=@var{user},@var{group},@var{jail},@var{dir}
194 Run LilyPond in a jail.
195
196 The @code{--jail} option provides a more flexible alternative to 
197 @code{--safe} when LilyPond formatting is available through a web
198 server or whenever LilyPond executes externally provided
199 sources.
200
201 The @code{--jail} option works by changing the root of LilyPond to
202 @var{jail} just before starting the actual compilation process.  The user
203 and group are then changed to match those provided, and the current
204 directory is changed to @var{dir}.  This setup guarantees that it is not
205 possible (at least in theory) to escape from the jail.  Note that for
206 @code{--jail} to work LilyPond must be run as root, which is usually
207 accomplished in a safe way using @command{sudo}.
208
209 Setting up a jail is a slightly delicate matter, as we must be sure that
210 LilyPond is able to find whatever it needs to compile the source
211 @emph{inside the jail}. A typical setup comprises the following items:
212
213 @table @asis
214 @item Setting up a separate filesystem
215 A separate filesystem should be created for LilyPond, so that it can be
216 mounted with safe options such as @code{noexec}, @code{nodev}, and
217 @code{nosuid}.  In this way, it is impossible to run executables or to
218 write directly to a device from LilyPond.  If you do not want to create a
219 separate partition, just create a file of reasonable size and use it to
220 mount a loop device.  A separate filesystem also guarantees that LilyPond
221 cannot write more space than it is allowed.
222
223 @item Setting up a separate user
224 A separate user and group (say, @samp{lily}/@samp{lily}) with low
225 privileges should be used to run LilyPond inside the jail.  There should
226 be a single directory writable by this user, which should be passed in
227 @var{dir}.
228
229 @item Preparing the jail
230 LilyPond needs to read a number of files while running.  All these files
231 are to be copied into the jail, under the same path they apper in the
232 real root filesystem.  The entire content of the LilyPond installation
233 (e.g., @file{/usr/share/lilypond})
234 should be copied.
235
236 If problems arise, the simplest way to trace them down is to run
237 LilyPond using @command{strace}, which will allow you to determine which
238 files are missing.
239
240 @item Running LilyPond
241 In a jail mounted with @code{noexec} it is impossible to execute any external
242 program.  Therefore LilyPond must be run with a backend that does not
243 require any such program.  As we already mentioned, it must be also run
244 with superuser privileges (which, of course, it will lose immediately),
245 possibly using @command{sudo}.  It is a good idea to limit the number of
246 seconds of CPU time LilyPond can use (e.g., using @command{ulimit
247 -t}), and, if your operating system supports it, the amount of memory
248 that can be allocated.
249 @end table
250
251
252 @item -v,--version
253 Show version information.
254
255 @item -V,--verbose
256 Be verbose: show full paths of all files read, and give timing
257 information.
258
259 @item -w,--warranty
260 Show the warranty with which GNU LilyPond comes. (It comes with
261 @strong{NO WARRANTY}!)
262 @end table
263
264
265 @section Environment variables
266
267 @ignore
268 For processing both the @TeX{} and the PostScript output, the
269 appropriate environment variables must be set.  The following scripts
270 do this:
271
272 @itemize @bullet
273 @item @file{buildscripts/@/out/@/lilypond@/-profile}
274 (for SH shells)
275 @item @file{buildscripts/@/out/@/lilypond@/-login} (for C-shells)
276 @end itemize
277
278 They should normally be sourced as part of the login process.  If these
279 scripts are not run from the system wide login process, then you must
280 run them yourself.
281
282 @cindex installing LilyPond
283
284 If you use sh, bash, or a similar shell, then add the following to
285 your @file{.profile}:
286 @example
287 . @var{/the/path/to/}lilypond-profile
288 @end example
289
290 If you use csh, tcsh or a similar shell, then add the following to
291 your @file{~/.login}:
292 @example
293 source @var{/the/path/to/}lilypond-login
294 @end example
295
296 Of course, in both cases, you should substitute the proper location of
297 either script.
298
299 These scripts set the following variables:
300 @table @code
301 @item TEXMF
302 To make sure that @TeX{} and lilypond find data files (among
303 others @file{.tex}, @file{.mf}, and @file{.tfm}),
304 you have to set @code{TEXMF} to point to the lilypond data
305 file tree.  A typical setting would be
306 @example
307 @{/usr/share/lilypond/2.4.0,@{!!/usr/share/texmf@}@}
308 @end example
309
310 @end table
311
312 @cindex PostScript
313 @cindex TEXMF
314 @cindex printing postscript
315
316 @end ignore
317
318
319 @cindex LANG
320 @cindex LILYPONDPREFIX
321
322 @code{Lilypond} recognizes the following environment variables:
323 @table @code
324 @item LILYPONDPREFIX
325 This specifies a directory where locale messages and
326 data files will be looked up by default.  The directory should contain
327 subdirectories called @file{ly/}, @file{ps/}, @file{tex/}, etc.
328
329 @item LANG
330 This selects the language for the warning messages.
331 @end table
332
333
334 @node Error messages
335 @section Error messages
336
337 @cindex error messages
338 Different error messages can appear while compiling a file:
339
340 @table @emph
341 @cindex warning
342
343 @item Warning
344 Something looks suspect.  If you are requesting something out of the
345 ordinary then you will understand the message, and can ignore it.
346 However, warnings usually indicate that something is wrong with the
347 input file.
348
349 @item Error
350 Something is definitely wrong.  The current processing step (parsing,
351 interpreting, or formatting) will be finished, but the next step will
352 be skipped.
353
354 @cindex error
355 @cindex fatal error
356 @item Fatal error
357 Something is definitely wrong, and LilyPond cannot continue.  This
358 happens rarely.  The most usual cause is misinstalled fonts.
359
360 @cindex trace, Scheme
361 @cindex call trace
362 @cindex Scheme error
363 @item Scheme error
364 Errors that occur while executing Scheme code are caught by the Scheme
365 interpreter.  If running with the verbose option (@code{-V} or
366 @code{--verbose}) then a call trace of the offending
367 function call is printed.
368
369 @cindex Programming error
370 @item Programming error
371 There was some internal inconsistency.  These error messages are
372 intended to help the programmers and debuggers.  Usually, they can be
373 ignored.  Sometimes, they come in such big quantities that they obscure
374 other output.  In this case, file a bug-report.
375
376 @item Aborted (core dumped)
377 This signals a serious programming error that caused the program to
378 crash.  Such errors are considered critical.  If you stumble on one,
379 send a bug-report.
380
381
382 @end table
383
384 @cindex errors, message format
385 If warnings and errors can
386 be linked to some part of the input file, then error messages have the
387 following form
388
389 @example
390 @var{filename}:@var{lineno}:@var{columnno}: @var{message}
391 @var{offending input line}
392 @end example
393
394 A line-break is inserted in the offending line to indicate the column
395 where the error was found.  For example,
396
397 @example
398 test.ly:2:19: error: not a duration: 5:
399   @{ c'4 e'5
400              g' @}
401 @end example
402
403 These locations are LilyPond's best guess about where the warning or
404 error occured, but (by their very nature) warnings and errors occur
405 when something unexpected happens.  If you can't see an error in the
406 indicated line of your input file, try checking one or two lines
407 above the indicated position.
408
409
410 @node Updating files with convert-ly
411 @section Updating with @command{convert-ly}
412
413 The LilyPond input syntax is routinely changed to simplify it or improve
414 it in different ways.  As a side effect of this, the LilyPond interpreter
415 often is no longer compatible with older input files.  To remedy this,
416 the program @command{convert-ly} can be used to deal with most of the
417 syntax changes between LilyPond versions.
418
419 It uses @code{\version} statements in the input files to detect the old
420 version number.  In most cases, to upgrade your input file it is sufficient
421 to run
422
423 @example
424 convert-ly -e myfile.ly
425 @end example
426
427 If there are no changes to myfile.ly and file called myfile.ly.NEW
428 is created, then myfile.ly is already updated.
429
430 To upgrade LilyPond fragments in texinfo files, use
431
432 @example
433 convert-ly --from=... --to=... --no-version *.itely
434 @end example
435
436 To upgrade many files at once, combine @code{convert-ly} with
437 standard unix commands.  This example will upgrade all @code{.ly}
438 files in the current directory
439
440 @example
441 for f in *.ly; do convert-ly -e $f; done;
442 @end example
443
444 In general, the program is invoked as follows:
445
446 @example
447 convert-ly [@var{option}]@dots{} @var{file}@dots{}
448 @end example
449
450
451 The following options can be given:
452
453 @table @code
454 @item -e,--edit
455 Do an inline edit of the input file.  Overrides @code{--output}.
456
457 @item -f,--from=@var{from-patchlevel}
458 Set the version to convert from.  If this is not set, @command{convert-ly}
459 will guess this, on the basis of @code{\version} strings in the file.
460
461 @item -o,--output=@var{file}
462 Set the output file to write.  
463
464 @item -n,--no-version
465 Normally, @command{convert-ly} adds a @code{\version} indicator 
466 to the output.  Specifying this option suppresses this.  
467
468 @item -s, --show-rules
469 Show all known conversions and exit.
470
471 @item --to=@var{to-patchlevel}
472 Set the goal version of the conversion.  It defaults to the latest
473 available version.
474
475 @item -h, --help
476 Print usage help.
477 @end table
478
479 @command{convert-ly} always converts up to the last syntax change handled by
480 it.  This means that the @code{\version} number left in the file is
481 usually lower than the version of @command{convert-ly} itself.
482
483 @refbugs
484
485 Not all language changes are handled.  Only one output option can be
486 specified.
487
488
489 @c  We might want to make this a completely new section, along with more
490 @c  info about how to upgrade old input files.  -gp
491
492 @ignore
493 Copy and paste from CVS, last updated
494 May 26, 2005
495
496 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/lilypond/lily-bugs/bugs/convert-ly.txt?rev=HEAD&content-type=text/plain
497 @end ignore
498 @verbatim
499
500 There are a few things that the convert-ly cannot handle. Here's a list of limitations
501 that the community has complained about.
502
503 This bug report structure has been chosen because convert-ly has a structure that doesn't
504 allow to smoothly implement all needed changes. Thus this is just a wishlist, placed
505 here for reference.
506
507 1.6->2.0:
508  Doesn't always convert figured bass correctly, specifically things like {< >}. Mats' comment on working around this:
509    To be able to run convert-ly
510    on it, I first replaced all occurencies of '{<' to some dummy like '{#'
511    and similarly I replaced '>}' with '&}'. After the conversion, I could
512    then change back from '{ #' to '{ <' and from '& }' to '> }'.
513  Doesn't convert all text markup correctly. In the old markup syntax,
514  it was possible to group a number of markup commands together within parentheses, e.g.
515    -#'((bold italic) "string")
516    This will incorrectly be converted into
517    -\markup{{\bold italic} "string"}
518    instead of the correct
519    -\markup{\bold \italic "string"}
520 2.0->2.2:
521  Doesn't handle \partcombine
522  Doesn't do \addlyrics => \lyricsto, this breaks some scores with multiple stanzas.
523 2.0->2.4:
524  \magnify isn't changed to \fontsize.
525     - \magnify #m => \fontsize #f, where f = 6ln(m)/ln(2)
526  remove-tag isn't changed.
527     - \applymusic #(remove-tag '. . .) => \keepWithTag #'. . .
528  firstpagenumber isn't changed.
529     - firstpagenumber no => printfirstpagenumber = ##f
530  Line breaks in header strings aren't converted.
531     - \\\\  as line break in \header strings => \markup \center-align <
532       "First Line" "Second Line" >
533  Crescendo and decrescendo terminators aren't converted.
534     - \rced => \!
535     - \rc => \!
536 2.2->2.4:
537  \turnOff (used in \set Staff.VoltaBracket = \turnOff) is not properly converted.
538 2.4.2->2.5.9
539  \markup{ \center-align <{ ... }> } should be converted to:
540  \markup{ \center-align {\line { ... }} }
541  but now, \line is missing.
542
543 @end verbatim
544
545
546 @node Reporting bugs
547 @section Reporting bugs
548
549 @cindex bugs
550 @cindex reporting bugs
551
552 If you have input that results in a crash or an erroneous output, then
553 that is a bug.  We try to respond to bug-reports promptly, and fix them as
554 soon as possible.  Help us by sending a defective input file, so we can
555 reproduce the problem.  Make it small, so we can easily debug the
556 problem.  Don't forget to tell which version of LilyPond you use!  Send
557 the report to @email{bug-lilypond@@gnu.org}.
558
559 @ignore
560 @c the bug database is not up to date enough. 
561
562 When you've found a bug, have a look at our
563 @uref{http://@/lilypond@/.org/@/doc/@/v2.5/@/bugs/,bug database} to see if
564 it has already been reported.  You could also try to do a few searches
565 on the mailing list for the bug.  Sometimes the bug will have already
566 been reported and a fix or workaround is already known.
567 @end ignore
568
569 Here is an example of a good bug report:
570
571 @example
572 It seems that placement of accidentals is broken.  In the
573 following example, the accidental touches the note head.
574
575 Using Mac OSX 10.3.7, fink package lilypond-devel
576
577 \version "2.5.18"
578 \relative c''@{
579    a4 b cis d
580 @}
581 @end example
582
583 @lilypond[quote]
584 \version "2.5.18"
585 \relative c''{
586   \override Accidental #'extra-offset = #'(1.0 . 0)
587   a4 b cis d
588 }
589 @end lilypond
590
591 @node Editor support
592 @section Editor support
593
594 @cindex editors
595 @cindex vim
596 @cindex emacs
597 @cindex modes, editor
598 @cindex syntax coloring
599 @cindex coloring, syntax
600
601 There is support from different editors for LilyPond.
602
603 @table @asis
604 @item Emacs
605 Emacs has a @file{lilypond-mode}, which provides keyword
606 autocompletion, indentation, LilyPond specific parenthesis matching
607 and syntax coloring, handy compile short-cuts and reading LilyPond
608 manuals using Info.  If @file{lilypond-mode} is not installed on your
609 platform, then read the
610 @ifhtml
611 @uref{source/Documentation/topdocs/out-www/INSTALL.html,installation instructions}.
612 @end ifhtml
613 @ifnothtml
614 installation instructions.
615 @end ifnothtml
616
617 @item VIM
618
619 For @uref{http://@/www@/.vim@/.org,VIM}, a @file{vimrc} is supplied, along
620 with syntax coloring tools.  For more information, refer to the
621 @ifhtml
622 @uref{source/Documentation/topdocs/out-www/INSTALL.html,installation instructions}.
623 @end ifhtml
624 @ifnothtml
625 installation instructions.
626 @end ifnothtml
627
628
629 @item JEdit
630
631 The @uref{http://@/www@/.jedit@/.org@/,jEdit} editor has a LilyPond plugin.
632 This plugin includes a DVI viewer, integrated help and viewing via
633 GhostScript.  It can be installed by doing @key{Plugins > Plugin
634 Manager}, and selecting @code{LilyTool} from the @key{Install} tab.
635
636 @end table
637
638 All these editors can be made to jump into the input file to the source
639 of a symbol in the graphical output.  See @ref{Point and click}.
640
641
642 @node File structure
643 @section File structure
644
645 The major part of this manual is concerned with entering various
646 forms of music in LilyPond.  However, many music expressions are not
647 valid input on their own, for example, a @code{.ly} file containing
648 only a note
649 @example
650 c'4
651 @end example
652
653 @noindent
654 will result in a parsing error.  Instead, music should be inside other
655 expressions, which may be put in a file by themselves.  Such
656 expressions are called toplevel expressions.  This section enumerates
657 them all.
658
659 A @code{.ly} file contains any number of toplevel expressions, where a
660 toplevel expression is one of the following
661
662 @itemize @bullet
663 @item
664 An output definition, such as @code{\paper}, @code{\midi}, and
665 @code{\layout}.  Such a definition at the toplevel changes the default
666 settings for the block entered.
667
668 @item
669 A @code{\header} block.  This sets the global header block.  This
670 is the block containing the definitions for book-wide settings, like
671 composer, title, etc. 
672
673 @item
674 An @code{\addquote} statement.  See @ref{Quoting other voices}
675 for more information.
676
677 @item
678 A @code{\score} block.  This score will be collected with other
679 toplevel scores, and combined as a single @code{\book}.
680
681 This behavior can be changed by setting the variable
682 @code{toplevel-score-handler} at toplevel.  The default handler is
683 defined in the init file @file{scm/@/lily@/.scm}.
684
685 @item
686 A @code{\book} block logically combines multiple movements
687 (i.e., multiple @code{\score} blocks) in one document.  A number of
688 @code{\scores} creates a single output file, where all movement are
689 concatenated.
690
691 This behavior can be changed by setting the variable
692 @code{toplevel-book-handler} at toplevel.  The default handler is
693 defined in the init file @file{scm/@/lily@/.scm}.
694
695 @item
696 A compound music expression, such as
697 @example
698 @{ c'4 d' e'2 @}
699 @end example
700
701 This will add the piece in a @code{\score} and format it in a
702 single book together with all other toplevel @code{\score}s and music
703 expressions.
704  
705 This behavior can be changed by setting the variable
706 @code{toplevel-music-handler} at toplevel.  The default handler is
707 defined in the init file @file{scm/@/lily@/.scm}.
708
709 @item
710 A markup text, a verse for example
711 @example
712 \markup @{
713    2.  The first line verse two.
714 @}
715 @end example
716
717 Markup texts are rendered above, between or below the scores or music
718 expressions, wherever they appear.
719
720 @item
721 An indentifier, such as
722 @example
723 foo = @{ c4 d e d @}
724 @end example
725
726 This can be used later on in the file by entering @code{\foo}.  The
727 name of an identifier should have alphabetic characters only; no
728 numbers, underscores or dashes.
729
730 @end itemize
731
732 The following example shows three things that may be entered at
733 toplevel
734
735 @example
736 \layout @{
737   % movements are non-justified by default    
738   raggedright = ##t
739 @}
740
741 \header @{
742    title = "Do-re-mi"
743 @}
744    
745 @{ c'4 d' e2 @}
746 @end example
747
748
749 At any point in a file, any of the following lexical instructions can
750 be entered:
751
752 @itemize @bullet
753 @item @code{\version}
754 @item @code{\include}
755 @item @code{\renameinput}
756 @end itemize 
757
758
759 @node Including LilyPond files
760 @section Including LilyPond files
761
762 @cindex @code{\include}
763 @cindex including files
764
765 A large project may be split up into separate files.  To refer to another
766 file, use
767
768 @example
769 \include "otherfile.ly"
770 @end example
771
772 For example, you may write separate files for each instrument part and
773 create a ``full score'' file which brings together the individual
774 instrument files.
775