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