Modifying the ottava spanner slope: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| Line 1: | Line 1: | ||
It is possible to change the slope of the Ottava spanner. | It is possible to change the slope of the Ottava spanner. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\relative c'' { | \relative c'' { | ||
\override Staff.OttavaBracket.stencil = #ly:line-spanner::print | \override Staff.OttavaBracket.stencil = #ly:line-spanner::print | ||
Revision as of 18:53, 16 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
}