]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/modifying-the-ottava-spanner-slope.ly
Doc: NR Pitches.itely - Clef - updated snippets and text
[lilypond.git] / Documentation / snippets / new / modifying-the-ottava-spanner-slope.ly
1 \version "2.18.0"
2
3 \header {
4   lsrtags = "tweaks-and-overrides, pitches, staff-notation"
5
6   texidoc = "
7 It is possible to change the slope of the Ottava spanner.
8
9 "
10   doctitle = "Modifying the Ottava spanner slope"
11 }
12
13 \relative c'' {
14   \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
15   \override Staff.OttavaBracket.bound-details =
16     #`((left . ((Y . 0) ; Change the integer here
17                 (attach-dir . ,LEFT)
18                 (padding . 0)
19                 (stencil-align-dir-y . ,CENTER)))
20        (right . ((Y . 5) ; Change the integer here
21                  (padding . 0)
22                  (attach-dir . ,RIGHT)
23                  (text . ,(make-draw-dashed-line-markup (cons 0 -1.2))))))
24   \override Staff.OttavaBracket.left-bound-info =
25      #ly:line-spanner::calc-left-bound-info-and-text
26   \override Staff.OttavaBracket.right-bound-info =
27      #ly:line-spanner::calc-right-bound-info
28   \ottava #1
29   c1
30   c'''1
31 }