]> git.donarmstrong.com Git - lilypond.git/blob - input/new/making-slurs-with-complex-dash-structure.ly
Update to dashed-slur package
[lilypond.git] / input / new / making-slurs-with-complex-dash-structure.ly
1 \version "2.13.1"
2
3 \header {
4   texidoc = "
5 Slurs can be made with complex dash patterns by defining
6 the @code{dash-definition} property.  @code{dash-definition}
7 is a list of @code{dash-elements}.  A @code{dash-element} is a
8 list of parameters defining the dash behavior for a segment of
9 the slur.
10
11 The slur is defined in terms of the bezier parameter t
12 which ranges from 0
13 at the left end of the slur to 1 at the right end of the slur.
14 @code{dash-element} is a list @code{(start-t stop-t dash-fraction
15 dash-period)}.  The region of the slur from @code{start-t} to
16 @code{stop-t} will have a fraction @code{dash-fraction}
17 of each @code{dash-period} black.  @code{dash-period} is
18 defined in terms of staff spaces.  @code{dash-fraction} is
19 set to 1 for a solid slur.
20 "
21   doctitle = "Making slurs with complex dash structure"
22
23   lsrtags = "rhythms, expressive"
24 }
25
26 \relative c' {
27   \once \override 
28     Slur #'dash-definition = #'((0 0.3 0.1 0.75)
29                                 (0.3 0.6 1 1)
30                                 (0.65 1.0 0.4 0.75))
31   c( d e f)
32   \once \override 
33     Slur #'dash-definition = #'((0 0.25 1 1)
34                                 (0.3 0.7 0.4 0.75)
35                                 (0.75 1.0 1 1))
36   c( d e f)
37 }
38
39