]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/creating-real-parenthesized-dynamics.ly
Merge branch 'master' into dev/texi2html
[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.51"
4
5 \header {
6   lsrtags = "expressive-marks, text"
7
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.
12
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}.
18
19
20
21 "
22   doctitle = "Creating \"real\" parenthesized dynamics"
23 } % begin verbatim
24 \paper { ragged-right = ##t }
25
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
32 }