X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fcreating-real-parenthesized-dynamics.ly;h=5fbbe1f34f958566b46d3c9b1fa8f03097fd4318;hb=4d405ef96a8a62771d7d9a283ff5369a772e89d8;hp=4f67c9b85f04639f8979476b4853c2c2fc76616f;hpb=ebc3cdab150ac7de7857043d301f784fd0f8aecc;p=lilypond.git diff --git a/Documentation/snippets/creating-real-parenthesized-dynamics.ly b/Documentation/snippets/creating-real-parenthesized-dynamics.ly index 4f67c9b85f..5fbbe1f34f 100644 --- a/Documentation/snippets/creating-real-parenthesized-dynamics.ly +++ b/Documentation/snippets/creating-real-parenthesized-dynamics.ly @@ -1,10 +1,10 @@ %% 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.14.2" +\version "2.19.22" \header { lsrtags = "expressive-marks, text, workaround" @@ -26,11 +26,16 @@ commands such as @code{\\dynamicUp} or @code{\\dynamicDown}. 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 }