]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/add-staccato.ly
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / input / test / add-staccato.ly
index 45d61d4db1e13e9a68ecf55d7bbb6cbadc22a34c..3a8668c5b8e84da1c030105f0a69fbcf0ac8b6c3 100644 (file)
@@ -1,7 +1,8 @@
-\version "2.9.7"
-\sourcefilename "add-staccato.ly"
+
+\version "2.7.39"
 
 \header {
+
 texidoc= "@cindex Add Stacato
 Using @code{make-music}, you can add various stuff to notes. In this
 example staccato dots are added to the notes."
@@ -10,7 +11,7 @@ example staccato dots are added to the notes."
 #(define (make-script x)
    (make-music 'ArticulationEvent
                'articulation-type x))
-
+    
 #(define (add-script m x)
    (if
      (equal? (ly:music-property m 'name) 'EventChord)
@@ -22,15 +23,11 @@ example staccato dots are added to the notes."
 #(define (add-staccato m)
    (add-script m "staccato"))
 
-addStacc =
-#(define-music-function (parser location music) 
-                                       (ly:music?)
-               (music-map add-staccato music))    
-
 \score {
   \relative c'' {
-    a b \addStacc { c c } 
+    a b \applyMusic #(lambda (x) (music-map add-staccato x)) { c c } 
   }
   \layout{ ragged-right = ##t }
 }
 
+