]> git.donarmstrong.com Git - lilypond.git/commitdiff
Run scripts/auxiliar/makelsr.py
authorDavid Kastrup <dak@gnu.org>
Tue, 4 Jun 2013 16:43:38 +0000 (18:43 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 9 Jun 2013 07:58:03 +0000 (09:58 +0200)
Documentation/snippets/creating-real-parenthesized-dynamics.ly

index 8f43bbff62eba84b0a0be51295af0d490a6178d2..d6299a8ca896e8e9334fcae07285cb9e86ad45ac 100644 (file)
@@ -1,9 +1,10 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.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.16.0
 \version "2.16.0"
 
 \header {
@@ -27,10 +28,16 @@ commands such as @code{\\dynamicUp} or @code{\\dynamicDown}.
 } % begin verbatim
 
 
-parenF = #(make-dynamic-script (markup #:line (#:normal-text #:italic
-           #:fontsize 2 "(" #:hspace -0.8 #:dynamic "f" #:normal-text
-           #:italic #:fontsize 2 ")")))
+paren =
+#(define-event-function (parser location dyn) (ly:event?)
+   (make-dynamic-script
+    #{ \markup \concat {
+         \normal-text \italic \fontsize #2 (
+        \pad-x #0.2 #(ly:music-property dyn 'text)
+        \normal-text \italic \fontsize #2 )
+       }
+    #}))
 
 \relative c'' {
-  c4\parenF c c \dynamicUp c\parenF
+  c4\paren\f c c \dynamicUp c\paren\p
 }