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