]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/moving-slur-positions-vertically.ly
LSR: update.
[lilypond.git] / Documentation / snippets / moving-slur-positions-vertically.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.16"
5
6 \header {
7   lsrtags = "expressive-marks, tweaks-and-overrides"
8
9   texidoc = "
10 The vertical position of a slur can be adjusted using the
11 @code{positions} property of @code{Slur}.  The property has 2
12 parameters, the first referring to the left end of the slur and the
13 second to the right.  The values of the parameters are not used by
14 LilyPond to make an exact movement of the slur - instead it selects
15 what placement of the slur looks best, taking into account the
16 parameter values.  Positive values move the slur up, and are
17 appropriate for notes with stems down.  Negative values move the slur
18 down.
19
20 "
21   doctitle = "Moving slur positions vertically"
22 } % begin verbatim
23
24 \relative c' {
25   \stemDown
26   e4( a)
27   \override Slur #'positions = #'(1 . 1)
28   e4( a)
29   \override Slur #'positions = #'(2 . 2)
30   e4( a)
31   \override Slur #'positions = #'(3 . 3)
32   e4( a)
33   \override Slur #'positions = #'(4 . 4)
34   e4( a)
35   \override Slur #'positions = #'(5 . 5)
36   e4( a)
37   \override Slur #'positions = #'(0 . 5)
38   e4( a)
39   \override Slur #'positions = #'(5 . 0)
40   e4( a)
41 }
42