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