]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/add-staccato.ly
* scm/*.scm: make-music-by-name is replaced by make-music, which
[lilypond.git] / input / test / add-staccato.ly
index 4801874ab2a7b7be849d42eb3943128098c10867..8dff3e4efdfb9121aa762c64613367f50557c918 100644 (file)
@@ -1,26 +1,25 @@
 
-\version "1.9.8"
+\version "2.1.26"
 
 \header {
 
 texidoc= "@cindex Add Stacato
-Using make-music, you can add various stuff to notes. Here
-is an example how to add staccato dots.  Note: for this simple case
-one would not use scm constructs.  See separate-staccato.ly first.
+Using @code{make-music}, you can add various stuff to notes. In this
+example staccato dots are added to the notes.  For this simple case,
+it is not necessary to use scm constructs (see @code{separate-staccato.ly}).
 "
 } 
 
 #(define (make-script x)
-   (let ((m (make-music-by-name 'ArticulationEvent)))
-     (ly:set-mus-property! m 'articulation-type x)
-     m))
+   (make-music 'ArticulationEvent
+               'articulation-type x))
     
 #(define (add-script m x)
    (if
-    (equal? (ly:get-mus-property m 'name) 'EventChord)
-    (ly:set-mus-property! m 'elements
-                         (cons (make-script x)
-                               (ly:get-mus-property m 'elements))))
+     (equal? (ly:music-property m 'name) 'EventChord)
+     (set! (ly:music-property m 'elements)
+           (cons (make-script x)
+                 (ly:music-property m 'elements))))
    m)
 
 #(define (add-staccato m)