]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/essay/engraving.itely
Web: some more fine-tuning of authors list.
[lilypond.git] / Documentation / essay / engraving.itely
index 435d823d85fce2ce476a2049ff2d4a7984691894..410e631709d941588806f5bdb40c923428501ffa 100644 (file)
 This section covers the overall goals and architecture of
 LilyPond.
 
+@c TODO:
+@c remove 3mm eps bounding box left padding for Sarabande (This will
+@c     require adding a new snippet option to lilypond-book.py
+@c check formatting of HTML output
+@c
+
+@c Notes:
+@c Incorrect beaming in the Sarabande is a known bug.
+
 @menu
-* Engraving::                   
+* The LilyPond story::          
+* Engraving details::           
 * Automated engraving::         
 * What symbols to engrave?::    
 * Music representation::        
@@ -24,9 +34,113 @@ LilyPond.
 * Appendix::                    
 @end menu
 
+@node The LilyPond story
+@unnumberedsec The LilyPond story
+
+Before LilyPond had a community of users around the world, before it had
+been used to produce university course notes or world-premier opera
+performance scores, before there was an essay on music engraving or any
+computer code or even an organized team of developers, LilyPond began
+with a question:
+
+@quotation
+Why does most computer output fail to achieve the beauty and balance of
+a hand-engraved score?
+@end quotation
+
+@noindent
+Some of the answers can be found by examining the two scores
+@ifnottex
+below.
+@end ifnottex
+@iftex
+on the following pages.
+@end iftex
+The first score is a beautiful hand-engraved score from 1950 and the
+second is a modern, computer-engraved edition.
+
+@ifnottex
+@noindent
+Bärenreiter BA 320, @copyright{}1950:
+
+@sourceimage{baer-suite1-fullpage,,,png}
+
+@noindent
+Henle no. 666, @copyright{}2000:
+
+@sourceimage{henle-suite1-fullpage,,,png}
+@end ifnottex
 
-@node Engraving
-@unnumberedsec Engraving
+The notes here are identical, taken from Bach's first Suite for solo
+cello, but the appearance is different, especially if you print them out
+and veiw them from a distance.
+@ifnottex
+(The PDF version of this manual has high-resolution images suitable for
+printing.)
+@end ifnottex
+Try reading or playing from each of the scores and you will find that
+the hand-engraved score is more enjoyable to use. It has flowing lines
+and movement, and it feels like a living, breathing piece of music,
+while the newer edition seems cold and mechanical.
+
+It is kind of hard to immediately see what makes the difference with the
+newer edition. Everything looks neat and tiny, possibly even ``better''
+because it looks more computerized and uniform. This really puzzled us
+for quite a while. We wanted to improve computer notation, but we first
+had to figure out what was wrong with it.
+
+The answer lies in the precise, mathematical uniformity of the newer
+edition. Find the barline in the middle of each line: in the
+hand-engraved score the position of these barlines has some natural
+natural variation, while in the newer version they line up almost
+perfectly. This is shown in these simplified page layout diagrams,
+traced from the hand-engraved (left) and computer-generated music
+(right):
+
+@quotation
+@iftex
+@sourceimage{pdf/page-layout-comparison,,,}
+@end iftex
+@ifnottex
+@sourceimage{page-layout-comparison,,,png}
+@end ifnottex
+@end quotation
+@noindent
+
+In the computer-generated output, even the individual noteheads are
+aligned in vertical columns, making the contour of the melody disappear
+into a rigid grid of musical markings.
+
+There are other differences as well: in the hand-engraved edition the
+vertical lines are all stronger, the slurs lie closer to the noteheads,
+and there is more visual variety in the placement of the beams. Although
+such details may seem like nitpicking, the result is a score that is
+easier to read. In the computer-generated output, each line is nearly
+identical and if the musician looks away for a moment, she will be lost
+on the page.
+
+LilyPond was designed to solve the problems we found in existing
+software and to create beautiful music that mimics the finest
+hand-engraved scores. Along the way, we have learned a great deal about
+the work that goes into a well-engraved score. In this essay we describe
+several of those aspects that we have tried to imitate in LilyPond.
+
+@iftex
+@page
+@noindent
+Bärenreiter BA 320, @copyright{}1950:
+
+@sourceimage{baer-suite1-fullpage,16cm,,}
+@page
+@noindent
+Henle no. 666, @copyright{}2000:
+@sp 3
+@sourceimage{henle-suite1-fullpage,16cm,,}
+@page
+@end iftex
+
+@node Engraving details
+@unnumberedsec Engraving details
 
 @cindex engraving
 @cindex typography, music
@@ -64,17 +178,18 @@ necessary to become truly skilled.
 @end ifnottex
 @end quotation
 
-Now all newly printed music is produced with computers. This has
-obvious advantages: prints are cheaper to make, editorial work can be
-delivered by email, and the original data can be easily stored.
-Unfortunately, computer-generated scores rarely match the quality of
-hand-engraved scores. Instead, computer printouts have a bland,
-mechanical look, which makes them unpleasant to play from.
+LilyPond is inspired by traditional manual engravings published by
+European music publishers in and towards the end of the first half of
+the twentieth century, inlcuding Baerenreiter, Duhem, Durand,
+Hofmeister, Peters, and Schott. This is sometimes regarded as the peak
+of traditional musical engraving practice.
 
-From the beginning, we designed LilyPond to mimic the beauty of
-traditional music engraving. Along the way, we have learned a great deal
-about the work that goes into a well-engraved score. Below we describe
-several of those aspects that we have tried to imitate in LilyPond.
+@c Now all newly printed music is produced with computers. This has
+@c obvious advantages: prints are cheaper to make, editorial work can be
+@c delivered by email, and the original data can be easily stored.
+@c Unfortunately, computer-generated scores rarely match the quality of
+@c hand-engraved scores. Instead, computer printouts have a bland,
+@c mechanical look, which makes them unpleasant to play from.
 
 @menu
 * Music fonts::                 
@@ -91,7 +206,7 @@ The images below illustrate some differences between traditional
 engraving and typical computer output. The left picture shows a scan of
 a flat symbol from a hand-engraved Bärenreiter edition, while the right
 picture depicts a symbol from an edition of the same music published in
-2000. Although both images are printed in the shame shade of ink, the
+2000. Although both images are printed in the same shade of ink, the
 earlier version looks darker: the staff lines are heavier, and the
 Bärenreiter flat has a bold, almost voluptuous rounded look. The right
 scan, on the other hand, has thinner lines and a straight layout with
@@ -137,7 +252,7 @@ Henle (2000)
 
 When we wanted to write a computer program to create music typography,
 there were no musical fonts freely available that could match the
-elegance of our favorite scores. Not let down, we created a font of
+elegance of our favorite scores. Undeterred, we created a font of
 musical symbols, relying on nice printouts of hand-engraved music. The
 experience helped develop a typographical taste, and it made us
 appreciate subtle design details. Without that experience, we would not
@@ -157,8 +272,8 @@ our own LilyPond font.
 @end quotation
 
 The LilyPond symbols are heavier and their weight is more consistent,
-which makes them easier to read. Fine endings, such as the one on the
-bottom of the quarter rest, should not end in sharp points, but rather
+which makes them easier to read. Fine endings, such as the ones on the
+sides of the quarter rest, should not end in sharp points, but rather
 in rounded shapes. This is because sharp corners of the punching dies
 are fragile and quickly wear out when stamping in metal. Taken together,
 the blackness of the font must be carefully tuned together with the
@@ -175,11 +290,11 @@ vertical strokes are heavier.
 @unnumberedsubsec Optical spacing
 
 In spacing, the distribution of space should reflect the durations
-between notes.  However, many modern scores adhere to the
-durations with mathematical precision, which leads to poor
-results.  In the next example a motive is printed twice: the first time
-using exact mathematical spacing, and the second with corrections.
-Which do you prefer?
+between notes. However, as we saw in the Bach Suite above, many modern
+scores adhere to the durations with mathematical precision, which leads
+to poor results. In the next example a motive is printed twice: the
+first time using exact mathematical spacing, and the second with
+corrections. Which do you prefer?
 
 @cindex optical spacing
 
@@ -240,18 +355,17 @@ music = {
 @cindex regular spacing
 @cindex spacing, regular
 
-Each bar in the fragment only uses notes that are played in a
-constant rhythm.  The spacing should reflect that.  Unfortunately,
-the eye deceives us a little; not only does it notice the distance
-between note heads, it also takes into account the distance
-between consecutive stems.  As a result, the notes of an
-up-stem/@/down-stem combination should be put farther apart, and
-the notes of a down-stem/@/up-stem combination should be put
-closer together, all depending on the combined vertical positions
-of the notes.  The upper two measures are printed with this
-correction, the lower two measures, however, form down-stem/@/up-stem
-clumps of notes. A master engraver would adjust the spacing as needed to
-please the eye.
+Each bar in the fragment only uses notes that are played in a constant
+rhythm. The spacing should reflect that. Unfortunately, the eye deceives
+us a little; not only does it notice the distance between note heads, it
+also takes into account the distance between consecutive stems. As a
+result, the notes of an up-stem/@/down-stem combination should be put
+farther apart, and the notes of a down-stem/@/up-stem combination should
+be put closer together, all depending on the combined vertical positions
+of the notes. The lower two measures are printed with this correction,
+the upper two measures, however, form down-stem/@/up-stem clumps of
+notes. A master engraver would adjust the spacing as needed to please
+the eye.
 
 Another example of optical spacing is the visual interplay between the
 stems and the bar lines. When an up-stem precedes the bar line, a little
@@ -273,6 +387,10 @@ more space is needed to keep it from feeling crowded:
       \remove "Time_signature_engraver"
       \override NoteSpacing #'stem-spacing-correction = #0.7
     }
+    \context {
+      \Score
+      \remove "Bar_number_engraver"
+    }
   }
 }
 @end lilypond
@@ -348,9 +466,16 @@ magnified by 236% to print at the same size as the previous example:
 @end ifnottex
 @end quotation
 
-At smaller sizes, LilyPond uses proportionally heavier lines and so the
-music will still read well. This also allows staves of different
-sizes to coexist peacefully when used together on the same page:
+@noindent
+At smaller sizes, LilyPond uses proportionally heavier lines so the
+music will still read well.
+
+@ignore
+This also allows staves of different sizes to coexist peacefully when
+used together on the same page:
+
+@c TODO: are the stems in this example the right thickness? How should
+@c line wieghts be scaled for small staves?
 
 @c Grieg's Violin Sonata Op. 45
 @lilypond[indent=1.5cm]
@@ -397,6 +522,7 @@ global = {
   >>
 >>
 @end lilypond
+@end ignore
 
 @node Why work so hard?
 @unnumberedsubsec Why work so hard?
@@ -437,55 +563,112 @@ to see and love to play from.
 @cindex engraving, automated
 @cindex automated engraving
 
+This section describes what is required to create software that can
+mimic the layout of engraved scores: a method of explaining good
+layouts to the computer, detailed comparisons with real engravings,
+and enough flexibility to deal with the wide range of challenges
+that printed music can present.
+
 @menu
 * Beauty contests::             
-* Notation benchmarking::       
+* Improvement by benchmarking::  
+* Getting things right::        
 * Flexible architecture::       
 @end menu
 
 @node Beauty contests
 @unnumberedsubsec Beauty contests
 
-Rather than trying to write rules that describe how to draw an
-attractive slur for every possible scenario, we have written rules that
-describe an attractive slur and LilyPond finds the nicest possibility.
-For example, here are three possible slur configurations, and LilyPond
-has given each one a score in `ugly points':
+How do we actually make formatting decisions?  In other words, which
+of the three configurations should we choose for the following slur?
 
 @lilypond
-%\layout { #(define debug-slur-scoring #t) }
-
 \relative c {
     \clef bass
     \once \override Slur #'positions = #'(1.5 . 1)
-    e8[(_"15.39" f] g[ a b d,)] r4
+    e8[( f] g[ a b d,)] r4
     \once \override Slur #'positions = #'(2 . 3)
-    e8[(_"13.08" f] g[ a b d,)] r4
-    e8[(_"12.04" f] g[ a b d,)] r4
+    e8[( f] g[ a b d,)] r4
+    e8[( f] g[ a b d,)] r4
 }
 @end lilypond
 
-@noindent
+There are a few books on the art of music engraving
+available. Unfortunately, they contain rules of simple thumbs and some
+examples.  Such rules can be instructive, but they are a far cry from
+an algorithm that we could readily implement in a computer.  Following
+the instructions from literature leads to algorithms with lots of
+handcoded exceptions. Doing all this case analysis is a lot of work,
+and often not all cases are covered completely:
+
+@quotation
+@iftex
+@sourceimage{ross-beam-scan,7cm,,}
+@end iftex
+@ifnottex
+@sourceimage{ross-beam-scan,,,.jpg}
+@end ifnottex
+@end quotation
 
-The first example gets 15.39 points for grazing one of the notes. The
+(Image source: Ted Ross, @emph{The Art of Music Engraving})
+
+Rather than trying to write detailed layout rules for every possible
+scenario, we only have to describe the objectives well enough that
+LilyPond can judge the attractiveness of several alternatives. Then,
+for each possible configuration we compute an ugliness score and we
+choose the least ugly configuration.
+
+For example, here are three possible slur configurations, and LilyPond
+has given each one a score in `ugly points'. The first example gets 15.39
+points for grazing one of the notes:
+
+@lilypond
+\relative c {
+    \clef bass
+    \once \override Slur #'positions = #'(1.5 . 1)
+    e8[(_"15.39" f] g[ a b d,)] r4
+}
+@end lilypond
+
+The
 second one is nicer, but the slur doesn't start or end on the noteheads.
 It gets 1.71 points for the left side and 9.37 points for the right
 side, plus another 2 points because the slur ascends while the melody
-descends for a total of 13.08 ulgy points. The final slur gets 10.04
+descends for a total of 13.08 ulgy points:
+
+@lilypond
+\relative c {
+    \clef bass
+    \once \override Slur #'positions = #'(2 . 3)
+    e8[(_"13.08" f] g[ a b d,)] r4
+}
+@end lilypond
+
+The final slur gets 10.04
 points for the gap on the right and 2 points for the upward slope, but
 it is the most attractive of the three configurations, so LilyPond
-selects that one.
+selects this one:
+
+@lilypond
+\relative c {
+    \clef bass
+    e8[(_"12.04" f] g[ a b d,)] r4
+}
+@end lilypond
+
+This technique is quite general, and is used to make optimal decisions
+for beam configurations, ties and dots in chords, line breaks, and page
+breaks. The results of these decisions can be judged by comparison to
+real engravings.
 
-This technique is quite general, and is used to select beam
-configurations, ties and dots in chords, line breaks, and page breaks.
+@node Improvement by benchmarking
+@unnumberedsubsec Improvement by benchmarking
 
-@node Notation benchmarking
-@unnumberedsubsec Notation benchmarking
+LilyPond's output has improved gradually over time, and it continues to
+improve by comparing its output to hand-engraved scores.
 
-We have tuned LilyPond's layout rules by comparing its output to
-hand-engraved scores. Here is one line of a benchmark piece from a
-hand-engraved edition (Bärenreiter BA320), and as engraved by LilyPond
-1.4:
+For example, here is one line of a benchmark piece from a
+hand-engraved edition (Bärenreiter BA320):
 
 @iftex
 @sourceimage{baer-sarabande-hires,16cm,,}
@@ -494,8 +677,12 @@ hand-engraved edition (Bärenreiter BA320), and as engraved by LilyPond
 @sourceimage{baer-sarabande,,,png}
 @end ifnottex
 
+@noindent
+and the same quotation as engraved by a very old version of LilyPond
+(version 1.4, May 2001):
+
 @iftex
-@sourceimage{lily14-sarabande,16cm,,}
+@sourceimage{pdf/lily14-sarabande,16cm,,}
 @end iftex
 @ifnottex
 @sourceimage{lily14-sarabande,,,png}
@@ -505,20 +692,28 @@ hand-engraved edition (Bärenreiter BA320), and as engraved by LilyPond
 comparison with the hand-engraved score showed a lot of errors in the
 formatting details:
 
+@iftex
+@sourceimage{lily14-sarabande-annotated-hires,16cm,,}
+@end iftex
+@ifnottex
+@sourceimage{lily14-sarabande-annotated,,,png}
+@end ifnottex
+
 @itemize @bullet
-@item most of the stems are too long
-@item the trill marks are too big
+@item there is too much space before the time signature
+@item the stems of the beamed notes are too long
 @item the second and fourth measures are too narrow
 @item the slur is awkward-looking
+@item the trill marks are too big
 @item the stems are too thin
-@item there was too much space before the time signature
 @end itemize
 
 @noindent
-(There were also two missing notes, and one wrong one!)
+(There were also two missing noteheads, several missing editorial
+annotations, and an incorrect pitch!)
 
 By adjusting the layout rules and font design, the output has improved
-considerably. This is the same musical quotation compared to the output
+considerably. Compare the same reference score and the output
 from the current version of LilyPond (@version{}):
 
 @iftex
@@ -553,64 +748,187 @@ from the current version of LilyPond (@version{}):
 The current output is not a clone of the reference edition, but it is
 much closer to publication quality that the earlier output.
 
-@c TODO: remove 3mm eps bounding box left padding for this example
-@c This will require adding a new snippet option to lilypond-book.py
-@c TODO: Why is the beaming in measure 3 wrong in 2.13.5?
+@node Getting things right
+@unnumberedsubsec Getting things right
+
+We can also measure LilyPond's ability to make music engraving decisions
+automatically by comparing LilyPond's output to the output of a
+commercial software product. In this case we have chosen Finale 2008,
+which is one of the most popular commercial scorewriters, particularly
+in North America. Sibelius is their major rival and they appear to be
+especially strong in the European market.
+
+For our comparison we chose Bach's Fugue in G minor from the
+Well-Tempered Clavier, Book I, BWV 861, whose opening subject is
+
+@lilypond
+\relative c' {
+  \key g \minor
+  \clef "treble_8"
+  r8 d ees g, fis4 g
+  r8 a16 bes c8 bes16 a bes8
+}
+@end lilypond
+
+@noindent
 
-[@strong{Andrew H:} This comparison is not finished. I promise not to
-leave it in such a mess!]
+We made our comparison by engraving the last seven measures of the piece
+(28--34) in Finale and LilyPond. This is the point in the piece where
+the subject returns in a three-part stretto and leads into the closing
+section. In the Finale version, we have resisted the temptation to make
+any adjustments to the default output because we are trying to show the
+things that each software package gets right without assistance.
 
-Another valuable form of benchmarking is comparing LilyPond's output to
-the output of a commercial software product. In this case we have chosen
-Finale 2008, which is one of the most popular commercial scorewriters,
-particularly in North America. Sibelius is their major rival and they
-appear to be especially strong in the European market.
+Many of the differences between the two engravings are visible in
+measures 28--29, as shown here with Finale first and LilyPond second:
 
-We have selected the last seven measures of Bach's Fugue in G minor from
-the Well-Tempered Clavier, Book I, BWV 861. In the final draft there
-will be pitcures here, but for now please consult the appendix
-(currently pp. 12--14) for the output from both programs and images from
-four reference engravings.
+@iftex
+@sourceimage{pdf/bwv861mm28-29,14cm,,}
+@end iftex
+@ifnottex
+@sourceimage{bwv861mm28-29,,,png}
+@end ifnottex
+
+@lilypond[staffsize=19.5,line-width=14\cm]
+global = {\key g \minor}
+
+partI = \relative c' {
+  \voiceOne
+  fis8 d' ees g, fis4 g
+  r8 a16 bes c8 bes16 a d8 r r4
+}
+
+partII = \relative c' {
+  \voiceTwo
+  d4 r4 r8 d'16 c bes8 c16 d
+  ees8 d c ees a, r r4
+}
+partIII = \relative c' {
+  \voiceOne
+  r2 r8 d ees g, fis4 g r8 a16 bes c8 bes16 a
+}
+partIV = \relative c {
+  \voiceTwo
+  d4 r r2
+  r8 d ees g, fis4 a
+}
+
+\score {
+  <<
+    % \set Score.barNumberVisibility = #all-bar-numbers-visible
+    % required in 2.13
+    \set Score.currentBarNumber = #28
+    \bar ""
+    \new PianoStaff <<
+      \new Staff = "RH" <<
+        \global
+        \new Voice = "voiceI" { \partI }
+        \new Voice = "voiceII" { \partII }
+      >>
 
-My findings so far:
+      \new Staff = "LH" <<
+        \clef "bass"
+        \global
+        \new Voice = "voiceIII" { \partIII }
+        \new Voice = "voiceIV" { \partIV }
+      >>
+    >>
+  >>
+  \layout {
+    \context {
+      \Staff
+      \remove "Time_signature_engraver"
+    }
+    \context {
+      \PianoStaff
+      \override StaffGrouper #'between-staff-spacing #'padding = #1
+    }
+  }
+}
+@end lilypond
 
+Some shortcomings in the unedited Finale output include:
 @itemize @bullet
-@item Finale rests are always at the same heights (in v1/v2 situations).
-@item Finale doesn't interlock notes nicely (mm. 28--29).
-@item Finale misses the B-flat in mm. 33!
-@item Finale's beamed stems are almost always too long when they extend
-off the staff.
-@item LilyPond 2.13.5 has a vertical spacing problem (no padding).
-@item LilyPond could use a little more space before the first note of
-mm. 30, 33--34.
-@item LilyPond's ties to beat 1 of mm. 31 are shorter than any of the
-reference scores, and Finale's are even worse.
-@item LilyPond's stems are often shorter than any of the references,
-especially RH mm. 31.
-@item In some locations, the Bärenreiter engraver(s) place rests
-further from the staff than strictly necessary in order to keep them
-vertically close to the subsequent element in that voice (e.g. mm. 28).
-@item There is some acceptable variation within the reference scores,
-although some scores are more attractive than others.
+@item Most of the beams extend too far off the staff. A beam that points
+towards the center of the staff should have a length of about one
+octave, but engravers shorten this when the beam points away from the
+staff in multi-voice music. The Finale beaming can be easily improved
+with the Patterson Beams plug-in, but we elected to skip that step for
+this example.
+@item Finale doesn't adjust the positions of interlocking noteheads,
+which makes the music extremely difficult to read when the upper and
+lower voices exchange positions temporarily:
+
+@lilypond
+collide = \once \override NoteColumn #'force-hshift = #0
+\new Score <<
+  \new Voice = "sample" \relative c''{
+    \key g \minor
+    <<
+      {\voiceOne g4 \collide g4}
+      \new Voice {\voiceTwo bes \collide bes}
+    >>
+  }
+  \new Lyrics \lyricsto "sample" \lyricmode { "good " " bad" }
+>>
+@end lilypond
+
+@item Finale has placed all of the rests at fixed heights on the staff.
+The user is free to adjust them as needed, but the software makes no
+attempt to consider the content of the other voice. As luck would have
+it, there are no true collsions between notes and rests in this example,
+but that has more to do with the positions of the notes than the rest.
+In other words, Bach deserves more credit for avoiding a complete
+collision that Finale does.
+
 @end itemize
 
-@c How do we go about implementing typography?  If craftsmen need
-@c over ten years to become true masters, how could we simple hackers
-@c ever write a program to take over their jobs?
+This example is not intended to suggest that Finale cannot be used to
+produce beautiful output. On the contrary, in the hands of a skilled
+user it can and does, but it requires skill and time. One of the
+fundamental differences between LilyPond and commercial scorewriters is
+that LilyPond hopes to reduce the amount of human intervention to an
+absolute minimum, while other packages try to provide an attractive
+interface in which to make these types of edits.
 
-@c The answer is: we cannot.
+One particularly glaring omission we found in the Finale sample is a
+missing flat in measure 33:
 
-The last two points lead into this concluding/transition paragraph:
+@quotation
+@iftex
+@sourceimage{pdf/bwv861mm33-34-annotate,7.93cm,,}
+@end iftex
+@ifnottex
+@sourceimage{bwv861mm33-34-annotate,,,png}
+@end ifnottex
+@end quotation
 
-Typography relies on human judgment of
-appearance, so people cannot be replaced completely.  However,
-much of the dull work can be automated.  If LilyPond solves most
-of the common situations correctly, this will be a huge
-improvement over existing software.  The remaining cases can be
-tuned by hand.  Over the course of years, the software can be
-refined to do more and more things automatically, so manual
-overrides are less and less necessary. Where manual adjustments are
-needed, LilyPond's structure must be ...
+@noindent
+The flat symbol is required to cancel out the natural in the same
+measure, but Finale misses it because it occurred in a different voice.
+The user must not only remember to run a beaming plug-in and respace the
+noteheads and rests, she must also check each measure for cross-voice
+accidentals if she is to avoid interrupting a rehearsal for an engraving
+error.
+
+If you are interested in examining these examples in more detail, the
+full seven-measure excerpt can be found at the end of this essay in
+engravings by Finale and LilyPond along with four different published
+engravings. Close examination reveals that there is some acceptible
+variation among the hand-engravings, but that LilyPond compares
+reasonably well to that acceptible range. There are still some
+shortcomings in the LilyPond output, for example, it appears a bit too
+agressive in shortening some of the stems, so there is room for further
+development and fine-tuning.
+
+Of course, typography relies on human judgment of appearance, so people
+cannot be replaced completely. However, much of the dull work can be
+automated. If LilyPond solves most of the common situations correctly,
+this will be a huge improvement over existing software. Over the course
+of years, the software can be refined to do more and more things
+automatically, so manual overrides are less and less necessary. Where
+manual adjustments are needed, LilyPond's structure has been designed
+with that flexibility in mind.
 
 @node Flexible architecture
 @unnumberedsubsec Flexible architecture
@@ -1234,6 +1552,7 @@ Finale 2008:
 @sourceimage{bwv861-finale2008a,,,png}
 @end ifnottex
 
+@sp 4
 @noindent
 LilyPond, version @version{}:
 
@@ -1307,6 +1626,10 @@ partIV = \relative c {
       \Staff
       \remove "Time_signature_engraver"
     }
+    \context {
+      \PianoStaff
+      \override StaffGrouper #'between-staff-spacing #'padding = #1
+    }
   }
 }
 @end lilypond