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