LSR: Update.
[lilypond.git] / input / lsr / creating-real-parenthesized-dynamics.ly
blobe86d21fd0645a627d182aae7a371b912d3d63805
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.49"
5 \header {
6 lsrtags = "expressive-marks, text"
8 texidoc = "
9 Although the easiest way to add parentheses to a dynamic mark is to use
10 a @code{\\markup} block, this method has a downside: the created
11 objects will behave like text markups, and not like dynamics.
13 However, it is possible to create a similar object using the equivalent
14 Scheme code (as described in \"Markup programmer interface\"), combined
15 with the @code{make-dynamic-script} function. This way, the markup will
16 be regarded as a dynamic, and therefore will remain compatible with
17 commands such as @code{\\dynamicUp} or @code{\\dynamicDown}.
22 doctitle = "Creating \"real\" parenthesized dynamics"
23 } % begin verbatim
24 \paper { ragged-right = ##t }
26 parenF = #(make-dynamic-script (markup #:line (#:normal-text #:italic
27 #:fontsize 2 "(" #:hspace -0.8 #:dynamic "f" #:normal-text
28 #:italic #:fontsize 2 ")"
29 )))
30 \relative c'' {
31 c4\parenF c c \dynamicUp c\parenF