]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/making-slurs-with-complex-dash-structure.ly
Update LSR snippets from input/new
[lilypond.git] / input / lsr / making-slurs-with-complex-dash-structure.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   texidoces = "
7
8 Las ligaduras de expresión se pueden construir con patrones de
9 discontinuidad complejos mediante la definición de la propiedad
10 @code{dash-definition}.  @code{dash-definition} es una lista de
11 @code{elementos de discontinuidad}.  Un @code{elemento de
12 discontinuidad} es una lista de parámetros que definen el
13 comportamiento de discontinuidad de un segmento de la ligadura de
14 expresión.
15
16 La ligadura se define en términos del parámetro de bezier t cuyo
17 rango va de 0 a la izquierda de la ligadura hasta 1 en el extremo
18 derecho de la ligadura.  Cada @code{elemento de discontinuidad} es
19 una lista @code{(t-inicio t-final fracción-discontinuidad
20 período-discontinuidad)}.  La región de la ligadura desde
21 @code{t-inicio} hasta @code{t-final} tendrá una fracción
22 @code{fracción-discontinuidad} de cada
23 @code{período-discontinuidad} de color negro.
24 @code{período-discontinuidad} se define en términos de espacios de
25 pentagrama.  @code{fracción-discontinuidad} se establece al valor
26 de 1 para una ligadura continua.
27
28 "
29
30   doctitlees = "Hacer ligaduras de expresión con estructura compleja de discontinuidad"
31
32   lsrtags = "rhythms, expressive-marks"
33   texidoc = "
34 Slurs can be made with complex dash patterns by defining
35 the @code{dash-definition} property.  @code{dash-definition}
36 is a list of @code{dash-elements}.  A @code{dash-element} is a
37 list of parameters defining the dash behavior for a segment of
38 the slur.
39
40 The slur is defined in terms of the bezier parameter t
41 which ranges from 0
42 at the left end of the slur to 1 at the right end of the slur.
43 @code{dash-element} is a list @code{(start-t stop-t dash-fraction
44 dash-period)}.  The region of the slur from @code{start-t} to
45 @code{stop-t} will have a fraction @code{dash-fraction}
46 of each @code{dash-period} black.  @code{dash-period} is
47 defined in terms of staff spaces.  @code{dash-fraction} is
48 set to 1 for a solid slur.
49 "
50   doctitle = "Making slurs with complex dash structure"
51 } % begin verbatim
52
53
54 \relative c' {
55   \once \override
56     Slur #'dash-definition = #'((0 0.3 0.1 0.75)
57                                 (0.3 0.6 1 1)
58                                 (0.65 1.0 0.4 0.75))
59   c( d e f)
60   \once \override
61     Slur #'dash-definition = #'((0 0.25 1 1)
62                                 (0.3 0.7 0.4 0.75)
63                                 (0.75 1.0 1 1))
64   c( d e f)
65 }