]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/moving-slur-positions-vertically.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / moving-slur-positions-vertically.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, tweaks-and-overrides"
11
12   texidoc = "
13 The vertical position of a slur can be adjusted using the
14 @code{positions} property of @code{Slur}.  The property has 2
15 parameters, the first referring to the left end of the slur and the
16 second to the right.  The values of the parameters are not used by
17 LilyPond to make an exact movement of the slur - instead it selects
18 what placement of the slur looks best, taking into account the
19 parameter values.  Positive values move the slur up, and are
20 appropriate for notes with stems down.  Negative values move downward
21 slurs further down.
22
23 "
24   doctitle = "Moving slur positions vertically"
25 } % begin verbatim
26
27
28 \relative c' {
29   \stemDown
30   e4( a)
31   \override Slur.positions = #'(1 . 1)
32   e4( a)
33   \override Slur.positions = #'(2 . 2)
34   e4( a)
35   \override Slur.positions = #'(3 . 3)
36   e4( a)
37   \override Slur.positions = #'(4 . 4)
38   e4( a)
39   \override Slur.positions = #'(5 . 5)
40   e4( a)
41   \override Slur.positions = #'(0 . 5)
42   e4( a)
43   \override Slur.positions = #'(5 . 0)
44   e4( a)
45   \stemUp
46   \override Slur.positions = #'(-5 . -5)
47   e4( a)
48   \stemDown
49   \revert Slur.positions
50   e4( a)
51 }