]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/script-shift-staccato.ly
Issue 2535: Staccato on stem side alignment when other articulations are present
[lilypond.git] / input / regression / script-shift-staccato.ly
1
2 \header {
3   texidoc = "The horizontal placement of staccato dots above an
4 upstem or below a downstem note differs from the placement of
5 other scripts in that different positioning is used when the dot is
6 alone and when it is part of a compound articulation.  The
7 property @code{toward-stem-shift-in-column} ensures good default
8 positioning of the staccato (see first measure below), and allows
9 precise horizontal control of a column containing a staccato and
10 of the staccato within it (second measure).  (@code{0.0} means
11 centered on the note head, @code{1.0} means centered on the stem.)
12 "
13 }
14
15 \version "2.19.16"
16
17 \relative c''
18 {
19   % default
20   a4^. c_.
21   a^.^- c_._-
22
23   \override Script.toward-stem-shift-in-column = 1.0
24   a4^.^- c_._-
25   \revert Script.toward-stem-shift-in-column
26
27   a4-\tweak toward-stem-shift-in-column 1.0 ^. ^-
28   c4-\tweak toward-stem-shift-in-column 1.0 _. _-
29 }