Modifying the ottava spanner slope: Difference between revisions
Appearance
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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"> | ||
| Line 24: | Line 24: | ||
</lilypond> | </lilypond> | ||
[[Category:Pitches]] | [[Category:Pitches]] | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Tweaks and overrides]] | |||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||
Latest revision as of 18:07, 10 December 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
}