]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/creating-real-parenthesized-dynamics.ly
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / creating-real-parenthesized-dynamics.ly
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.38"
4
5 \header {
6   lsrtags = "expressive-marks, text"
7  texidoc = "
8 Although the easiest way to add parentheses to a dynamic mark is to use
9 a @code{\\markup} block, this method has a downside: the created
10 objects will behave like text markups, and not like dynamics.
11
12 However, it is possible to create a similar object using the equivalent
13 Scheme code (as described in \"Markup programmer interface\"), combined
14 with the @code{make-dynamic-script} function. This way, the markup will
15 be regarded as a dynamic, and therefore will remain compatible with
16 commands such as @code{\\dynamicUp} or @code{\\dynamicDown}.
17
18
19 " }
20 % begin verbatim
21 \paper { ragged-right = ##t }
22
23 parenF = #(make-dynamic-script (markup #:line (#:normal-text #:italic
24            #:fontsize 2 "(" #:hspace -0.8 #:dynamic "f" #:normal-text #:italic
25            #:fontsize 2 ")"
26           )))
27
28 \score {
29   { c''\parenF c'' c'' \dynamicUp c''\parenF }
30 }
31