]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/creating-real-parenthesized-dynamics.ly
Merge branch 'master' of git://git.sv.gnu.org/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 parenthesis to a dynamic mark is to use
9 a \\markup block, this method has a downside: the created objects will
10 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 make-dynamic-script function. This way, the markup will be
15 regarded as a dynamic, and therefore will remain compatible with
16 commands such as \\dynamicUp or \\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 \score
28 {
29        { c''\parenF c'' c'' \dynamicUp c''\parenF }
30 }