]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-real-parenthesized-dynamics.ly
Docs: run convert-ly for 2.14.0.
[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.0"
8
9 \header {
10   lsrtags = "expressive-marks, text"
11
12 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
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 parenF = #(make-dynamic-script (markup #:line (#:normal-text #:italic
49            #:fontsize 2 "(" #:hspace -0.8 #:dynamic "f" #:normal-text
50            #:italic #:fontsize 2 ")")))
51
52 \relative c'' {
53   c4\parenF c c \dynamicUp c\parenF
54 }
55