]> git.donarmstrong.com Git - lilypond.git/commitdiff
Run scripts/auxiliar/makelsr.py
authorDavid Kastrup <dak@gnu.org>
Thu, 16 Jul 2015 15:11:43 +0000 (17:11 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 21 Jul 2015 05:07:36 +0000 (07:07 +0200)
Documentation/snippets/changing-properties-for-individual-grobs.ly

index b9aefd1fc923a3b95fb3ea9d0477f463d7028552..bce3cd9c92ae2e12a7fc50dfe670bfcb207b2a26 100644 (file)
@@ -1,9 +1,10 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.di.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.24
 \version "2.19.24"
 
 \header {
@@ -19,20 +20,19 @@ arguments.
 } % begin verbatim
 
 #(define (mc-squared grob grob-origin context)
-  (let ((sp (ly:grob-property grob 'staff-position)))
-    (if (grob::has-interface grob 'note-head-interface)
-      (begin
-        (ly:grob-set-property! grob 'stencil
-          (grob-interpret-markup grob
-            (make-lower-markup 0.5
-              (case sp
-                ((-5) "m")
-                ((-3) "c ")
-                ((-2) (make-smaller-markup (make-bold-markup "2")))
-                (else "bla")))))))))
+   (let ((sp (ly:grob-property grob 'staff-position)))
+     (ly:grob-set-property!
+      grob 'stencil
+      (grob-interpret-markup grob
+                            #{ \markup \lower #0.5
+                               #(case sp
+                                  ((-5) "m")
+                                  ((-3) "c ")
+                                  ((-2) #{ \markup \teeny \bold 2 #})
+                                  (else "bla")) #}))))
 
 \relative c' {
   <d f g b>2
-  \applyOutput Voice #mc-squared
+  \applyOutput Voice.NoteHead #mc-squared
   <d f g b>2
 }