]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2950: Update substitution function example in LM.
authorMark Polesky <markpolesky@yahoo.com>
Sat, 14 Jun 2014 02:25:19 +0000 (19:25 -0700)
committerMark Polesky <markpolesky@yahoo.com>
Wed, 18 Jun 2014 12:12:09 +0000 (05:12 -0700)
The old example illustrated the principle well, until skylining
code was added.  This change makes the example's point clear in
light of the new vertical spacing code.

Documentation/learning/fundamental.itely

index 60e67ee1358a51eb8b88b5100d5ca4cff4a71150..c64af67ed473d7116901149afe108c447848a065 100644 (file)
@@ -3060,9 +3060,6 @@ violin = \relative c'' @{
 @}
 @end example
 
-@c TODO Replace the following with a better example  -td
-@c Skylining handles this correctly without padText
-
 So far we've seen static substitution -- when LilyPond
 sees @code{\padText}, it replaces it with the stuff that
 we've defined it to be (ie the stuff to the right of
@@ -3080,12 +3077,12 @@ padText =
      \once \override TextScript.padding = #padding
    #})
 
-\relative c''' {
-  c4^"piu mosso" b a b |
+\relative c'' {
+  c4^"piu mosso" b a b
   \padText #1.8
-  c4^"piu mosso" d e f |
+  c4^"piu mosso" b a b
   \padText #2.6
-  c4^"piu mosso" fis a g |
+  c4^"piu mosso" b a b
 }
 @end lilypond