]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/add-text-script.ly
* lily/my-lily-lexer.cc: add \accacciatura and \appoggiatura
[lilypond.git] / input / test / add-text-script.ly
index dada29c77b969ab8ed879896701fb44ba8c9d084..9da7b4816ce226709f269cbbbef014aac0030b22 100644 (file)
@@ -1,21 +1,23 @@
-\version "1.7.6"  %% or actually: 1.7.1 ...
+\version "1.9.2"
+
 \header {
-texidoc= "Using make-music, you can add
-various stuff to notes. Here is an example
-how to add an extra fingering. 
+texidoc= "@cindex make-music Fingering
+You can add various stuff to notes using make-music.
+Here is an example of how to add an extra fingering. 
 
-In general, first do a display of the music you want ot
-create, then write a function that will build the structure for you."
+In general, first do a display of the music you want to
+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 'direction DOWN) 
+     (ly:set-mus-property! m 'text (make-simple-markup x))
      m))
      
 #(define (add-text-script m x)
-   (if (equal? (ly:music-name m) 'RequestChord)
+   (if (equal? (ly:get-mus-property m 'name) 'EventChord)
        (ly:set-mus-property! m 'elements
                            (cons (make-text-script x)
                                  (ly:get-mus-property m 'elements)))
@@ -28,7 +30,8 @@ create, then write a function that will build the structure for you."
    m)
 
 \score {
-  \apply #(lambda (x) (add-text-script x "6") (display x) x ) \notes { c4-3 }
+  \apply #(lambda (x)  (add-text-script x "6") (display-music x) x ) \notes { c'4-3 }
+       \paper{ raggedright = ##t }
 }
 
-%% new-chords-done %%
+