]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/add-text-script.ly
ly- -> ly:
[lilypond.git] / input / test / add-text-script.ly
index bec0a159107850d01df29196bb7de1675f493273..a8f63b3e5a98e0440323bda65404ba6d5480d942 100644 (file)
@@ -1,4 +1,4 @@
-\version "1.7.0"  %% or actually: 1.7.1 ...
+\version "1.7.3"  %% or actually: 1.7.1 ...
 \header {
 texidoc= "Using make-music, you can add
 various stuff to notes. Here is an example
@@ -10,20 +10,20 @@ create, then write a function that will build the structure for you."
 
 #(define (make-text-script x) 
    (let ((m (make-music-by-name 'TextScriptEvent)))
-     (ly-set-mus-property! m 'text-type 'finger)
-     (ly-set-mus-property! m 'text x)
+     (ly:set-mus-property! m 'text-type 'finger)
+     (ly:set-mus-property! m 'text x)
      m))
      
 #(define (add-text-script m x)
-   (if (equal? (ly-music-name m) 'RequestChord)
-       (ly-set-mus-property! m 'elements
+   (if (equal? (ly:music-name m) 'RequestChord)
+       (ly:set-mus-property! m 'elements
                            (cons (make-text-script x)
-                                 (ly-get-mus-property m 'elements)))
+                                 (ly:get-mus-property m 'elements)))
        
-       (let ((es (ly-get-mus-property m 'elements))
-            (e (ly-get-mus-property m 'element)) )
+       (let ((es (ly:get-mus-property m 'elements))
+            (e (ly:get-mus-property m 'element)) )
         (map (lambda (y) (add-text-script y x)) es)
-        (if (music? e)
+        (if (ly:music? e)
             (add-text-script e x))))
    m)