]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-real-parenthesized-dynamics.ly
Local updates from LSR
[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 %% Translation of GIT committish: f5cfaf8ef4ac347702f554af0944ef0d8396e73a
11   texidocfr = "
12 Bien que le moyen le plus simple pour ajouter des parenthèses à une
13 indication de nuance consiste à utiliser un bloc @code{\\markup}, cette
14 pratique a un inconvénient@tie{}: les objets ainsi créés seront
15 considérés comme des annotations textuelles, non comme des nuances.
16
17 Il est néanmoins possible de créer des objets particuliers en partant de
18 code Scheme -- comme expliqué dans le manuel de notation -- avec la
19 fonction @code{make-dynamic-script}.  Les @emph{markups} ainsi créés
20 seront alors considérés comme étant des indications de nuance, et de ce
21 fait pourront se voir appliquer les effets des commandes
22 @code{\\dynamicUp} et @code{\\dynamicDown}.
23
24 "
25   doctitlefr = "Indications de nuance vraiment entre parenthèses"
26
27   lsrtags = "workaround, text, expressive-marks"
28
29
30 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
31   texidoces = "
32 Aunque la manera más fácil de añadir paréntesis a una indicación
33 de dinámica es utilizar un bloque @code{\\markup}, este método
34 tiene un inconveniente: los objetos que se crean se comportarán
35 como elementos de marcado de texto y no como indicaciones
36 dinámicas.
37
38 Sin embargo, es posible crear un objeto similar utilizando el código
39 de Scheme equivalente (como se explica en la Referencia de la
40 notación), en combinación con la función
41 @code{make-dynamic-script}. De esta forma, el elemento de marcado se
42 tratará como una indicación dinámica, y por tanto seguirá siendo
43 compatible con instrucciones como @code{\\dynamicUp} o
44 @code{\\dynamicDown}.
45
46 "
47   doctitlees = "Crear indicaciones dinámicas \"verdaderas\" entre paréntesis"
48
49   texidoc = "
50 Although the easiest way to add parentheses to a dynamic mark is to use
51 a @code{\\markup} block, this method has a downside: the created
52 objects will behave like text markups, and not like dynamics.
53
54 However, it is possible to create a similar object using the equivalent
55 Scheme code (as described in the Notation Reference), combined with the
56 @code{make-dynamic-script} function. This way, the markup will be
57 regarded as a dynamic, and therefore will remain compatible with
58 commands such as @code{\\dynamicUp} or @code{\\dynamicDown}.
59
60
61
62 "
63   doctitle = "Creating \"real\" parenthesized dynamics"
64 } % begin verbatim
65
66
67 parenF = #(make-dynamic-script (markup #:line (#:normal-text #:italic
68            #:fontsize 2 "(" #:hspace -0.8 #:dynamic "f" #:normal-text
69            #:italic #:fontsize 2 ")")))
70
71 \relative c'' {
72   c4\parenF c c \dynamicUp c\parenF
73 }
74