]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-real-parenthesized-dynamics.ly
87ef63c8a2b19e2fe534299aec947a352d569910
[lilypond.git] / Documentation / snippets / creating-real-parenthesized-dynamics.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.39"
5
6 \header {
7   lsrtags = "expressive-marks, text"
8
9 %% Translation of GIT committish: 5160eccb26cee0bfd802d844233e4a8d795a1e94
10   texidoces = "
11 Aunque la manera más fácil de añadir paréntesis a una indicación
12 de dinámica es utilizar un bloque @code{\\markup}, este método
13 tiene un inconveniente: los objetos que se crean se comportarán
14 como elementos de marcado de texto y no como indicaciones
15 dinámicas.
16
17 Sin embargo, es posible crear un objeto similar utilizando el código
18 de Scheme equivalente (como se explica en la Referencia de la
19 notación), en combinación con la función
20 @code{make-dynamic-script}. De esta forma, el elemento de marcado se
21 tratará como una indicación dinámica, y por tanto seguirá siendo
22 compatible con instrucciones como @code{\\dynamicUp} o
23 @code{\\dynamicDown}.
24
25 "
26   doctitlees = "Crear indicaciones dinámicas \"verdaderas\" entre paréntesis"
27
28   texidoc = "
29 Although the easiest way to add parentheses to a dynamic mark is to use
30 a @code{\\markup} block, this method has a downside: the created
31 objects will behave like text markups, and not like dynamics.
32
33 However, it is possible to create a similar object using the equivalent
34 Scheme code (as described in the Notation Reference), combined with the
35 @code{make-dynamic-script} function. This way, the markup will be
36 regarded as a dynamic, and therefore will remain compatible with
37 commands such as @code{\\dynamicUp} or @code{\\dynamicDown}.
38
39
40
41 "
42   doctitle = "Creating \"real\" parenthesized dynamics"
43 } % begin verbatim
44
45 parenF = #(make-dynamic-script (markup #:line (#:normal-text #:italic
46            #:fontsize 2 "(" #:hspace -0.8 #:dynamic "f" #:normal-text
47            #:italic #:fontsize 2 ")")))
48
49 \relative c'' {
50   c4\parenF c c \dynamicUp c\parenF
51 }
52