]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/modifying-the-ottava-spanner-slope.ly
Makelsr.py run
[lilypond.git] / Documentation / snippets / modifying-the-ottava-spanner-slope.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.18.0
8 \version "2.18.0"
9
10 \header {
11   lsrtags = "tweaks-and-overrides, pitches, staff-notation"
12
13   texidoc = "
14 It is possible to change the slope of the Ottava spanner.
15
16 "
17   doctitle = "Modifying the Ottava spanner slope"
18 } % begin verbatim
19
20
21 \relative c'' {
22   \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
23   \override Staff.OttavaBracket.bound-details =
24     #`((left . ((Y . 0) ; Change the integer here
25                 (attach-dir . ,LEFT)
26                 (padding . 0)
27                 (stencil-align-dir-y . ,CENTER)))
28        (right . ((Y . 5) ; Change the integer here
29                  (padding . 0)
30                  (attach-dir . ,RIGHT)
31                  (text . ,(make-draw-dashed-line-markup (cons 0 -1.2))))))
32   \override Staff.OttavaBracket.left-bound-info =
33      #ly:line-spanner::calc-left-bound-info-and-text
34   \override Staff.OttavaBracket.right-bound-info =
35      #ly:line-spanner::calc-right-bound-info
36   \ottava #1
37   c1
38   c'''1
39 }