Modifying the ottava spanner slope: Difference between revisions
Appearance
m Lemzwerg moved page Modifying the Ottava spanner slope to Modifying the ottava spanner slope without leaving a redirect: Only the first letter of a title should be uppercase |
mNo edit summary |
||
| Line 1: | Line 1: | ||
It is possible to change the slope of the | It is possible to change the slope of the ottava spanner. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
Revision as of 13:04, 29 November 2025
It is possible to change the slope of the ottava spanner.
\version "2.24"
\relative c'' {
\override Staff.OttavaBracket.stencil = #ly:line-spanner::print
\override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0)
(attach-dir . ,LEFT)
(padding . 0)
(stencil-align-dir-y . ,CENTER)))
(right . ((Y . 5.0) ; Change the number here
(padding . 0)
(attach-dir . ,RIGHT)
(text . ,(make-draw-dashed-line-markup
(cons 0 -1.2))))))
\override Staff.OttavaBracket.left-bound-info =
#ly:horizontal-line-spanner::calc-left-bound-info-and-text
\override Staff.OttavaBracket.right-bound-info =
#ly:horizontal-line-spanner::calc-right-bound-info
\ottava 1
c1
c'''1
}