%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
+%% 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.
-\version "2.16.0"
+\version "2.19.22"
\header {
lsrtags = "expressive-marks, text, workaround"
doctitle = "Creating \"real\" parenthesized dynamics"
} % 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 (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
}