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