]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-real-parenthesized-dynamics.ly
LSR: Update.
[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.10"
5
6 \header {
7   lsrtags = "expressive-marks, text"
8
9 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
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
18 código de Scheme equivalente (como se explica en \"Interfaz del
19 programador de elementos de marcado\"), en combinación con la
20 función @code{make-dynamic-script}. De esta forma, el elemento de
21 marcado se tratará como una indicación dinámica, y por tanto
22 seguirá siendo compatible con instrucciones como
23 @code{\\dynamicUp} o @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