]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/modifying-the-ottava-spanner-slope.ly
LSR import
[lilypond.git] / Documentation / snippets / modifying-the-ottava-spanner-slope.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.0"
8
9 \header {
10   lsrtags = "pitches, staff-notation, tweaks-and-overrides"
11
12   texidoc = "
13 It is possible to change the slope of the Ottava spanner.
14
15 "
16   doctitle = "Modifying the Ottava spanner slope"
17 } % begin verbatim
18
19 \relative c'' {
20   \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
21   \override Staff.OttavaBracket.bound-details =
22     #`((left . ((Y . 0) ; Change the integer here
23                 (attach-dir . ,LEFT)
24                 (padding . 0)
25                 (stencil-align-dir-y . ,CENTER)))
26        (right . ((Y . 5) ; Change the integer here
27                  (padding . 0)
28                  (attach-dir . ,RIGHT)
29                  (text . ,(make-draw-dashed-line-markup (cons 0 -1.2))))))
30   \override Staff.OttavaBracket.left-bound-info =
31      #ly:line-spanner::calc-left-bound-info-and-text
32   \override Staff.OttavaBracket.right-bound-info =
33      #ly:line-spanner::calc-right-bound-info
34   \ottava #1
35   c1
36   c'''1
37 }