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