On Thu, 28 Nov 2019, Pierre Perol-Schneider wrote:
How about:
\version "2.19.83"
\layout {
\context {
\Staff
\override OttavaBracket.stencil = #ly:line-spanner::print
\override OttavaBracket.bound-details =
#`((left . ((text . ,#{ \markup\concat\italic { "8" \raise #.8 \tiny "va"
} #})
(Y . 0)
(stencil-align-dir-y . ,UP)
))
(right . ((Y . 0)
(padding . -1)
(text . ,(make-draw-line-markup (cons 0 -1.5))))))
\override OttavaBracket.left-bound-info =
#ly:line-spanner::calc-left-bound-info-and-text
\override OttavaBracket.right-bound-info =
#ly:line-spanner::calc-right-bound-info
}
}
{
\ottava #1
c'' 4 4 4 4
}
Not bad, almost right, I would make the vertical line at the end of the
extender a little smaller, something like (cons 0 -1.0).
And when using \ottava #-1 the code for your extender line isn't
usable. Take a look at Gould's Behind Bars p.28 chapter "Octave signs" to
see what I'm trying to accomplish.
--
MT