]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/introduction.itely
Misc changes.
[lilypond.git] / Documentation / user / introduction.itely
1 @c -*- coding: latin-1; mode: texinfo; -*-
2 @c This file is part of lilypond.tely
3
4 @node Introduction
5 @chapter Introduction
6
7
8 @menu
9 * Engraving::
10 * Automated engraving::
11 * What symbols to engrave?::
12 * Music representation::
13 * Example applications::
14 * About this manual::
15 @end menu
16
17
18 @node Engraving
19 @section Engraving
20
21 The art of music typography is called @emph{(plate) engraving}.  The
22 term derives from the traditional process of music printing.  Just a
23 few decades ago, sheet music was made by cutting and stamping the
24 music into a zinc or pewter plate in mirror image.  The plate would be
25 inked, the depressions caused by the cutting and stamping would hold
26 ink.  An image was formed by pressing paper to the plate.  The
27 stamping and cutting was completely done by hand.  Making a correction
28 was cumbersome, if possible at all, so the engraving had to be perfect
29 in one go.  Engraving was a highly specialized skill; a craftsman had
30 to complete around five years of training before earning the title of
31 master engraver, and another five years of experience were
32 necessary to become truly skilled.
33
34 Nowadays, all newly printed music is produced with computers.  This
35 has obvious advantages; prints are cheaper to make, and editorial work
36 can be delivered by email.  Unfortunately, the pervasive use of
37 computers has also decreased the graphical quality of scores.
38 Computer printouts have a bland, mechanical look, which makes them
39 unpleasant to play from.
40
41
42 @c introduce illustrating aspects of engraving, font...
43 The images below illustrate the difference between traditional
44 engraving and typical computer output, and the third picture shows how
45 LilyPond mimics the traditional look.  The left picture shows a scan
46 of a flat symbol from an edition published in 2000.  The center
47 depicts a symbol from a hand-engraved B@"{a}renreiter edition of the
48 same music.  The left scan illustrates typical flaws of computer
49 print: the staff lines are thin, the weight of the flat symbol matches
50 the light lines and it has a straight layout with sharp corners.  By
51 contrast, the B@"{a}renreiter flat has a bold, almost voluptuous
52 rounded look.  Our flat symbol is designed after, among others, this
53 one.  It is rounded, and its weight harmonizes with the thickness of
54 our staff lines, which are also much thicker than lines in the
55 computer edition.
56
57 @multitable @columnfractions .05 .3 .3 .3 .05
58 @item @tab
59 @ifnotinfo
60 @iftex
61 @image{henle-flat-bw,4cm}
62 @end iftex
63 @ifnottex
64 @image{henle-flat-bw,,,png}
65 @end ifnottex
66
67 @tab
68 @iftex
69 @image{baer-flat-bw,4cm}
70 @end iftex
71 @ifnottex
72 @image{baer-flat-bw,,,png}
73 @end ifnottex
74
75 @tab
76 @iftex
77 @image{lily-flat-bw,4cm}
78 @end iftex
79 @ifnottex
80 @image{lily-flat-bw,,,png}
81 @end ifnottex
82 @end ifnotinfo
83 @ifinfo
84 @c workaround for makeinfo-4.6: line breaks and multi-column cookies
85 @image{henle-flat-bw,,,png} @image{baer-flat-bw,,,png} @image{lily-flat-bw,,,png}
86 @end ifinfo
87
88 @item @tab
89 Henle (2000)
90 @tab
91 B@"{a}renreiter (1950)
92 @tab
93 LilyPond Feta font (2003)
94
95 @end multitable
96
97
98 @cindex musical symbols
99 @cindex font
100 @cindex blackness
101 @cindex balance
102
103 @c introduce illustrating aspects of engraving, spacing...
104 In spacing, the distribution of space should reflect the durations
105 between notes.  However, many modern scores adhere to the durations
106 with mathematical precision, which leads to poor results.  In the
107 next example a motive is printed twice.  It is printed once using
108 exact mathematical spacing, and once with corrections.  Can you
109 spot which fragment is which?
110
111 @cindex optical spacing
112 @lilypondfile[quote,noindent]{spacing-optical.ly}
113
114 @cindex regular rhythms
115 @cindex regular spacing
116
117 The fragment only uses quarter notes: notes that are played in a
118 constant rhythm.  The spacing should reflect that.  Unfortunately, the
119 eye deceives us a little; not only does it notice the distance between
120 note heads, it also takes into account the distance between
121 consecutive stems.  As a result, the notes of an up-stem/@/down-stem
122 combination should be put farther apart, and the notes of a down-stem/@/up-stem
123 combination should be put closer together, all depending on the
124 combined vertical positions of the notes.  The first two measures are
125 printed with this correction, the last two measures without.  The notes
126 in the last two measures form down-stem/@/up-stem clumps of notes.
127
128 @cindex typography
129
130 Musicians are usually more absorbed with performing than with studying
131 the looks of a piece of music, so nitpicking about typographical details
132 may seem academical.  But it is not.  In larger pieces with monotonous
133 rhythms, spacing corrections lead to subtle variations in the layout
134 of every line, giving each one a distinct visual signature.  Without
135 this signature all lines would look the same, and they become like a
136 labyrinth.  If a musician looks away once or has a lapse in
137 concentration, the lines might lose their place on the page.
138
139 Similarly, the strong visual look of bold symbols on heavy staff lines
140 stands out better when the music is far away from the reader, for example,
141 if it is on a music stand.  A careful distribution of white space allows
142 music to be set very tightly without cluttering symbols together.  The
143 result minimizes the number of page turns, which is a great advantage.
144
145 This is a common characteristic of typography.  Layout should be
146 pretty, not only for its own sake, but especially because it helps the
147 reader in her task.  For performance material like sheet music, this is
148 of double importance: musicians have a limited amount of attention.  The
149 less attention they need for reading, the more they can focus on
150 playing the music.  In other words, better typography translates to better
151 performances.
152
153 These examples demonstrate that music typography is an art that is
154 subtle and complex, and that producing it requires considerable
155 expertise, which musicians usually do not have.  LilyPond is our
156 effort to bring the graphical excellence of hand-engraved music to the
157 computer age, and make it available to normal musicians.  We have
158 tuned our algorithms, font-designs, and program settings to produce
159 prints that match the quality of the old editions we love to see and
160 love to play from.
161
162
163
164
165 @node Automated engraving
166 @section Automated engraving
167
168 How do we go about implementing typography?  If craftsmen need over
169 ten years to become true masters, how could we simple hackers ever
170 write a program to take over their jobs?
171
172 The answer is: we cannot.  Typography relies on human judgment of
173 appearance, so people cannot be replaced completely.  However, much of
174 the dull work can be automated.  If LilyPond solves most of the common
175 situations correctly, this will be a huge improvement over existing
176 software.  The remaining cases can be tuned by hand.  Over the course
177 of years, the software can be refined to do more and more things
178 automatically, so manual overrides are less and less necessary.
179
180 When we started, we wrote the LilyPond program entirely in the C++
181 programming language; the program's functionality was set in stone by
182 the developers.  That proved to be unsatisfactory for a number of
183 reasons:
184
185 @itemize @bullet
186 @item When LilyPond makes mistakes,
187 users need to override formatting decisions.  Therefore, the user must
188 have access to the formatting engine.  Hence, rules and settings cannot
189 be fixed by us at compile-time but must be accessible for users at
190 run-time.
191
192 @item Engraving is a matter of visual judgment, and therefore a matter of
193 taste.  As knowledgeable as we are, users can disagree with our
194 personal decisions.  Therefore, the definitions of typographical style
195 must also be accessible to the user.
196
197 @item Finally, we continually refine the formatting algorithms, so we
198 need a flexible approach to rules.  The C++ language forces a certain
199 method of grouping rules that do not match well with how music
200 notation works.
201 @end itemize
202
203 These problems have been addressed by integrating an interpreter for
204 the Scheme programming language and rewriting parts of LilyPond in
205 Scheme.  The current formatting architecture is built around the
206 notion of graphical objects, described by Scheme variables and
207 functions.  This architecture encompasses formatting rules,
208 typographical style and individual formatting decisions.  The user has
209 direct access to most of these controls.
210
211 Scheme variables control layout decisions.  For example, many
212 graphical objects have a direction variable that encodes the choice
213 between up and down (or left and right).  Here you see two chords,
214 with accents and arpeggios.  In the first chord, the graphical objects
215 have all directions down (or left).  The second chord has all
216 directions up (right).
217
218 @lilypond[quote,raggedright]
219 \new Score \with {
220    \override SpacingSpanner #'spacing-increment = #3
221    \override TimeSignature #'transparent = ##t
222 } \relative {
223    \stemDown <e g b>4_>-\arpeggio
224    \override Arpeggio #'direction = #RIGHT
225    \stemUp <e g b>4^>-\arpeggio
226 }
227 @end lilypond
228
229 @noindent
230 The process of formatting a score consists of reading and writing the
231 variables of graphical objects.  Some variables have a preset value.  For
232 example, the thickness of many lines -- a characteristic of typographical
233 style -- is a variable with a preset value.  You are free to alter this
234 value, giving your score a different typographical impression.
235
236 @lilypond[quote,raggedright]
237 fragment = {
238    \clef bass f8 as8
239    c'4-~ c'16 as g f e16 g bes c' des'4
240 }
241 <<
242    \new Staff \fragment
243    \new Staff \with {
244       \override Beam #'thickness = #0.3
245       \override Stem #'thickness = #0.5
246       \override Bar #'thickness = #3.6
247       \override Tie #'thickness = #2.2
248       \override StaffSymbol #'thickness = #3.0
249       \override Tie #'extra-offset = #'(0 .  0.3)
250       }
251       \fragment
252 >>
253 @end lilypond
254
255 Formatting rules are also preset variables: each object has variables
256 containing procedures.  These procedures perform the actual
257 formatting, and by substituting different ones, we can change the
258 appearance of objects.  In the following example, the rule which note
259 head objects are used to produce their symbol is changed during the music
260 fragment.
261
262 @c FIXME: this example has errors:
263 @c    programming error: Grob `NoteHead' has no interface for property `text'
264 @c    Continuing; crossing fingers
265 @lilypond[quote,raggedright]
266 #(define (mc-squared grob orig current)
267   (let ((interfaces (ly:grob-property grob 'interfaces))
268         (pos (ly:grob-property grob 'staff-position)))
269     (if (and (memq 'note-head-interface interfaces)
270              (memq pos '(-2 -3 -5)))
271         (begin
272           (ly:grob-set-property! grob 'print-function Text_interface::print)
273           (ly:grob-set-property! grob 'font-family 'roman)
274           (ly:grob-set-property!
275            grob 'text
276            (make-raise-markup
277             -0.5
278             (case pos
279               ((-5) (make-simple-markup "m"))
280               ((-3) (make-simple-markup "c "))
281               ((-2) (make-smaller-markup (make-bold-markup "2")))
282               (else (make-simple-markup "bla")))))))))
283
284 \new Voice \relative c' {
285    \stemUp
286    \set autoBeaming = ##f
287    \time 2/4
288    <d f g>4
289    \once \override NoteHead #'print-function = #Note_head::brew_ez_stencil
290    <d f g>
291    \once \override NoteHead #'style = #'cross
292    <d f g>
293    \applyoutput #mc-squared
294    <d f g>
295    <<
296       { d8[ es-( fis^^ g] fis2-) }
297       \repeat unfold 5 { \applyoutput #mc-squared s8 }
298    >>
299 }
300 @end lilypond
301
302
303
304 @node What symbols to engrave?
305 @section What symbols to engrave?
306
307 @cindex engraving
308 @cindex typography
309
310 The formatting process decides where to place
311 symbols.  However, this can only be done once it is decided @emph{what}
312 symbols should be printed, in other words what notation to use.
313
314 Common music notation is a system of recording music that has evolved
315 over the past 1000 years.  The form that is now in common use dates
316 from the early renaissance.  Although the basic form (i.e., note heads on a
317 5-line staff) has not changed, the details still evolve to express the
318 innovations of contemporary notation.  Hence, it encompasses some 500
319 years of music.  Its applications range from monophonic melodies to
320 monstrous counterpoints for large orchestras.
321
322 How can we get a grip on such a many-headed beast, and force it into
323 the confines of a computer program?  Our solution is to break up the
324 problem of notation (as opposed to engraving, i.e., typography) into
325 digestible and programmable chunks: every type of symbol is handled by
326 a separate module, a so-called plug-in.  Each plug-in is completely
327 modular and independent, so each can be developed and improved
328 separately.  Such plug-ins are called @code{engraver}s, by analogy with
329 craftsmen who translate musical ideas to graphic symbols.
330
331 In the following example, we see how we start out with a plug-in for
332 note heads, the @code{Note_heads_engraver}.
333
334 @lilypond[quote,raggedright]
335 \include "engraver-example.ily"
336
337 \score {
338    \topVoice
339    \layout {
340    \context {
341       \Voice
342       \remove "Stem_engraver"
343       \remove "Phrasing_slur_engraver"
344       \remove "Slur_engraver"
345       \remove "Script_engraver"
346       \remove "Beam_engraver"
347       \remove "Auto_beam_engraver"
348    }
349    \context {
350       \Staff
351       \remove "Accidental_engraver"
352       \remove "Key_engraver"
353       \remove "Clef_engraver"
354       \remove "Bar_engraver"
355       \remove "Time_signature_engraver"
356       \remove "Staff_symbol_engraver"
357       \consists "Pitch_squash_engraver"
358    }
359 }
360 }
361 @end lilypond
362
363 @noindent
364 Then a @code{Staff_symbol_engraver} adds the staff
365
366 @lilypond[quote,raggedright]
367 \include "engraver-example.ily"
368
369 \score {
370   \topVoice
371   \layout {
372     \context {
373       \Voice
374       \remove "Stem_engraver"
375       \remove "Phrasing_slur_engraver"
376       \remove "Slur_engraver"
377       \remove "Script_engraver"
378       \remove "Beam_engraver"
379       \remove "Auto_beam_engraver"
380     }
381     \context {
382       \Staff
383       \remove "Accidental_engraver"
384       \remove "Key_engraver"
385       \remove "Clef_engraver"
386       \remove "Bar_engraver"
387       \consists "Pitch_squash_engraver"
388       \remove "Time_signature_engraver"
389     }
390   }
391 }
392 @end lilypond
393
394 @noindent
395 the @code{Clef_engraver} defines a reference point for the staff
396
397 @lilypond[quote,raggedright]
398 \include "engraver-example.ily"
399
400 \score {
401   \topVoice
402   \layout {
403     \context {
404       \Voice
405       \remove "Stem_engraver"
406       \remove "Phrasing_slur_engraver"
407       \remove "Slur_engraver"
408       \remove "Script_engraver"
409       \remove "Beam_engraver"
410       \remove "Auto_beam_engraver"
411     }
412     \context {
413       \Staff
414       \remove "Accidental_engraver"
415       \remove "Key_engraver"
416       \remove "Bar_engraver"
417       \remove "Time_signature_engraver"
418     }
419   }
420 }
421 @end lilypond
422
423 @noindent
424 and the @code{Stem_engraver} adds stems.
425
426 @lilypond[quote,raggedright]
427 \include "engraver-example.ily"
428
429 \score {
430   \topVoice
431   \layout {
432     \context {
433       \Voice
434       \remove "Phrasing_slur_engraver"
435       \remove "Slur_engraver"
436       \remove "Script_engraver"
437       \remove "Beam_engraver"
438       \remove "Auto_beam_engraver"
439     }
440     \context {
441       \Staff
442       \remove "Accidental_engraver"
443       \remove "Key_engraver"
444       \remove "Bar_engraver"
445       \remove "Time_signature_engraver"
446     }
447   }
448 }
449 @end lilypond
450
451 The @code{Stem_engraver} is notified of any note head coming along.
452 Every time one (or more, for a chord) note head is seen, a stem
453 object is created and connected to the note head.  By adding
454 engravers for beams, slurs, accents, accidentals, bar lines,
455 time signature, and key signature, we get a complete piece of
456 notation.
457
458 @lilypond[quote,raggedright]
459 \include "engraver-example.ily"
460 \score { \topVoice }
461 @end lilypond
462
463 This system works well for monophonic music, but what about
464 polyphony?  In polyphonic notation, many voices can share a staff.
465
466 @lilypond[quote,raggedright]
467 \include "engraver-example.ily"
468 \new Staff << \topVoice \\ \botVoice >> 
469 @end lilypond
470
471 In this situation, the accidentals and staff are shared, but the stems,
472 slurs, beams, etc., are private to each voice.  Hence, engravers should
473 be grouped.  The engravers for note heads, stems, slurs, etc., go into a
474 group called `Voice context,' while the engravers for key, accidental,
475 bar, etc., go into a group called `Staff context.'  In the case of
476 polyphony, a single Staff context contains more than one Voice context.
477 Similarly, multiple Staff contexts can be put into a single Score
478 context.  The Score context is the top level notation context.
479
480 @seealso
481
482 Program reference: @internalsref{Contexts}.
483
484 @lilypond[quote,raggedright]
485 \include "engraver-example.ily"
486 \score {
487    <<
488       \new Staff << \topVoice \\ \botVoice >>
489       \new Staff << \pah \\ \hoom >>
490    >>
491 }
492 @end lilypond
493
494 @node Music representation
495 @section Music representation
496
497 Ideally, the input format for any high-level formatting system is an
498 abstract description of the content.  In this case, that would be the
499 music itself.  This poses a formidable problem: how can we define what
500 music really is? Instead of trying to find an answer, we have reversed
501 the question.  We write a program capable of producing sheet music,
502 and adjust the format to be as lean as possible.  When the format can
503 no longer be trimmed down, by definition we are left with content
504 itself.  Our program serves as a formal definition of a music
505 document.
506
507 The syntax is also the user-interface for LilyPond, hence it is easy
508 to type
509
510 @example
511 c'4 d'8
512 @end example
513
514 @noindent
515 a quarter note C1 (middle C) and an eighth note D1 (D above middle C)
516
517 @lilypond[quote,fragment]
518 c'4 d'8
519 @end lilypond
520
521 On a microscopic scale, such syntax is easy to use.  On a larger
522 scale, syntax also needs structure.  How else can you enter complex
523 pieces like symphonies and operas?  The structure is formed by the
524 concept of music expressions: by combining small fragments of music
525 into larger ones, more complex music can be expressed.  For example
526
527 @lilypond[quote,verbatim,fragment,relative=1]
528 c4
529 @end lilypond
530
531 @noindent
532 Chords can be constructed with @code{<<} and @code{>>} enclosing the notes
533
534 @c < > is not a music expression, 
535 @c so we use <<>> iso. <> to drive home the point of
536 @c expressions.  Don't change this back --hwn.
537 @example
538 <<c4 d4 e4>>
539 @end example
540
541 @lilypond[quote,fragment,relative=1]
542 \new Voice { <<c4 d4 e>> }
543 @end lilypond
544
545 @noindent
546 This expression is put in sequence by enclosing it in curly braces
547 @code{@{@tie{}@dots{}@tie{}@}}
548
549 @example
550 @{ f4 <<c4 d4 e4>> @}
551 @end example
552
553 @lilypond[quote,relative=1,fragment]
554 { f4 <<c d e4>> }
555 @end lilypond
556
557 @noindent
558 The above is also an expression, and so it may be combined
559 again with another simultaneous expression (a half note) using <<,
560 @code{\\}, and >>
561
562 @example
563 << g2 \\ @{ f4 <<c4 d4 e4>> @} >>
564 @end example
565
566 @lilypond[quote,fragment,relative=2]
567 \new Voice { << g2 \\ { f4 <<c d e>> } >> }
568 @end lilypond
569
570 Such recursive structures can be specified neatly and formally in a
571 context-free grammar.  The parsing code is also generated from this
572 grammar.  In other words, the syntax of LilyPond is clearly and
573 unambiguously defined.
574
575 User-interfaces and syntax are what people see and deal with
576 most.  They are partly a matter of taste, and also subject of much
577 discussion.  Although discussions on taste do have their merit, they
578 are not very productive.  In the larger picture of LilyPond, the
579 importance of input syntax is small: inventing neat syntax is easy, while
580 writing decent formatting code is much harder.  This is also
581 illustrated by the line-counts for the respective components: parsing
582 and representation take up less than 10% of the source code.
583
584
585 @node Example applications
586 @section Example applications
587
588 We have written LilyPond as an experiment of how to condense the art
589 of music engraving into a computer program.  Thanks to all that hard
590 work, the program can now be used to perform useful tasks.  The
591 simplest application is printing notes.
592
593 @lilypond[quote,relative=1,fragment]
594 \time 2/4 c4 c g'4 g a4 a g2
595 @end lilypond
596
597 @noindent
598 By adding chord names and lyrics we obtain a lead sheet.
599
600 @lilypond[quote,raggedright]
601 <<
602    \chords { c2 c f2 c }
603    \new Staff \relative c' { \time 2/4 c4 c g'4 g a4 a g2 }
604    \new Lyrics \lyricmode { twin4 kle twin kle lit tle star2 }
605 >>
606 @end lilypond
607
608 Polyphonic notation and piano music can also be printed.  The following
609 example combines some more exotic constructs.
610
611 @lilypondfile[quote,raggedright]{screech-boink.ly}
612
613 The fragments shown above have all been written by hand, but that is
614 not a requirement.  Since the formatting engine is mostly automatic, it
615 can serve as an output means for other programs that manipulate
616 music.  For example, it can also be used to convert databases of
617 musical fragments to images for use on websites and multimedia
618 presentations.
619
620 This manual also shows an application: the input format is text, and
621 can therefore be easily embedded in other text-based formats such as
622 La@TeX{}, HTML, or in the case of this manual, Texinfo.  By means of a
623 special program, the input fragments can be replaced by music images
624 in the resulting PDF or HTML output files.  This makes it easy
625 to mix music and text in documents.
626
627
628
629 @node About this manual
630 @section About this manual
631
632 The manual is divided into the following chapters:
633 @itemize @bullet
634
635 @item
636 @ifhtml
637 The
638 @end ifhtml
639 @emph{@ref{Tutorial}}
640 gives a gentle introduction to typesetting music.  First time
641 users should start here.
642
643 @item
644 @emph{@ref{Example templates}}
645 provides templates of LilyPond pieces.  Just cut and paste a
646 template into a file, add notes, and you're done!
647
648 @item
649 @emph{@ref{Putting it all together}}
650 demonstrates practical uses of LilyPond.
651
652 @item
653 @emph{@ref{Running LilyPond}}
654 shows how to run LilyPond and its helper
655 programs.  In addition, this section explains how to upgrade input
656 files from previous versions of LilyPond.
657
658 @item
659 @emph{@ref{Basic notation}}
660 discusses topics grouped by notation construct.  This section gives
661 details about basic notation that will be useful in almost any
662 notation project.
663
664 @item
665 @emph{@ref{Instrument-specific notation}}
666 discusses topics grouped by notation construct.  This section gives
667 details about special notation that will only be useful for particular
668 instrument (or vocal) groups.
669
670 @item
671 @emph{@ref{Advanced notation}}
672 discusses topics grouped by notation construct.  This section gives
673 details about complicated or unusual notation.
674
675 @item
676 @emph{@ref{Global issues}}
677 discusses issues which affect the whole lilypond file.
678
679 @item
680 @emph{@ref{Changing defaults}}
681 explains how to fine tune layout.
682
683 @item
684 @emph{@ref{LilyPond-book}} explains the details behind creating
685 documents with in-line music examples, like this manual.
686
687 @item
688 @emph{@ref{Converting from other formats}}
689 explains how to run the conversion programs.  These programs
690 are supplied with the LilyPond package, and convert a variety of music
691 formats to the @code{.ly} format.
692
693 @item
694 @ifhtml
695 The
696 @end ifhtml
697 @emph{@ref{Literature list}}
698 contains a set of useful reference books for those who wish to know
699 more on notation and engraving.
700 @end itemize
701
702 Once you are an experienced user, you can use the manual as reference:
703 there is an extensive index@footnote{If you are looking for something,
704 and you cannot find it in the manual, that is considered a bug.  In
705 that case, please file a bug report.}, but the document is also
706 available in
707 @iftex
708 a big HTML page,
709 @end iftex
710 @ifhtml
711 @uref{source/Documentation/user/out-www/lilypond.html, one big page},
712 @end ifhtml
713 which can be searched easily using the search facility of a web
714 browser.
715 @cindex search in manual
716 @cindex using the manual
717
718 @c FIXME:
719 @c add/integrate glossary, put in list above
720 If you are not familiar with music notation or music terminology
721 (especially if you are a non-native English speaker), it is advisable
722 to consult the glossary as well.
723 @iftex
724 The music glossary explains musical terms, and includes translations
725 to various languages.  It is a separate document, available in HTML
726 and PDF.
727 @end iftex
728 @ifnottex
729 The @ref{Top,Music glossary,,music-glossary}, explains musical terms and
730 includes translations to various languages.  It is also available in
731 PDF.
732 @end ifnottex
733 @cindex idiom
734 @cindex jargon
735 @cindex terminology
736 @cindex foreign languages
737 @cindex language
738
739
740 This manual is not complete without a number of other documents.  They
741 are not available in print, but should be included with the
742 documentation package for your platform
743
744 @itemize @bullet
745 @item
746 @iftex
747 Program reference
748 @end iftex
749 @ifnottex
750 @ref{Top,Program reference,,lilypond-internals}.
751 @end ifnottex
752
753 The program reference is a set of heavily cross linked HTML pages,
754 which document the nitty-gritty details of each and every LilyPond
755 class, object, and function.  It is produced directly from the
756 formatting definitions used.
757
758 Almost all formatting functionality that is used internally, is
759 available directly to the user.  For example, all variables that
760 control thickness values, distances, etc., can be changed in input
761 files.  There are a huge number of formatting options, and all of them
762 are described in this document.  Each section of the
763 notation manual has a @b{See also} subsection, which refers to the
764 generated documentation.  In the HTML document, these subsections
765 have clickable links.
766
767 @cindex snippets
768 @item
769 @ifnothtml
770 Various input examples.
771 @end ifnothtml
772 @ifhtml
773 @c Works, but link name is not so nice; so write-out macro
774 @c @inputfileref{input/test,Various input examples}.
775 @uref{source/input/test/out-www/collated-files.html,Various input examples}.
776 @end ifhtml
777
778 This collection of files shows various tips and tricks, and is
779 available as a big HTML document, with pictures and explanatory texts
780 included.
781
782 @item
783 @ifnothtml
784 The regression tests.
785 @end ifnothtml
786 @ifhtml
787 @c Works, but link name is not so nice; so write-out macro
788 @c @inputfileref{input/regression,The regression tests}.
789 @uref{source/input/regression/out-www/collated-files.html,The regression tests}.
790 @end ifhtml
791
792 This collection of files tests each notation and engraving feature of
793 LilyPond in one file.  The collection is primarily there to help us
794 debug problems, but it can be instructive to see how we exercise the
795 program.  The format is similar to the tips and tricks document.
796 @end itemize
797
798
799 In all HTML documents that have music fragments embedded, the LilyPond
800 input that was used to produce that image can be viewed by clicking
801 the image.
802
803 The location of the documentation files that are mentioned here can
804 vary from system to system.  On occasion, this manual refers to
805 initialization and example files.  Throughout this manual, we refer to
806 input files relative to the top-directory of the source archive.  For
807 example, @file{input/@/test/@/bla@/.ly} may refer to the file
808 @file{lilypond@/-2.6.0/@/input/@/test/@/bla@/.ly}.  On binary packages
809 for the Unix platform, the documentation and examples can typically be
810 found somewhere below @file{/usr/@/share/@/doc/@/lilypond/}.
811 Initialization files, for example @file{scm/@/lily@/.scm}, or
812 @file{ly/@/engraver@/-init@/.ly}, are usually found in the directory
813 @file{/usr/@/share/@/lilypond/}.
814
815 @cindex adjusting output
816 @cindex variables
817 @cindex properties
818 @cindex lilypond-internals
819 @cindex internal documentation
820 @cindex Scheme
821 @cindex extending lilypond
822 @cindex index
823
824 Finally, this and all other manuals, are available online both as PDF
825 files and HTML from the web site, which can be found at
826 @uref{http://@/www@/.lilypond@/.org/}.
827