Thanks, Pierre, that is quite good already, but there is an issue with
octavation spanning only one note. See this:
\version "2.19.13"
myOttavaUp = {
\override Staff.OttavaBracket.stencil = #ly:line-spanner::print
\override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0)
(stencil-align-dir-y . ,UP)))
(right . ((Y . 0)
(text . ,(make-draw-dashed-line-markup (cons 0 -1.2))))))
\override Staff.OttavaBracket.left-bound-info =
#ly:line-spanner::calc-left-bound-info-and-text
\override Staff.OttavaBracket.right-bound-info =
#ly:line-spanner::calc-right-bound-info
\ottava #1
}
myOttavaDown = {
\override Staff.OttavaBracket.stencil = #ly:line-spanner::print
\override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0)
(stencil-align-dir-y . ,DOWN)))
(right . ((Y . 0)
(text . ,(make-draw-dashed-line-markup (cons 0 1.2))))))
\override Staff.OttavaBracket.left-bound-info =
#ly:line-spanner::calc-left-bound-info-and-text
\override Staff.OttavaBracket.right-bound-info =
#ly:line-spanner::calc-right-bound-info
\ottava #-1
}
\relative c'' {
c1
\ottava #1
c c
\ottava #-1
c c
\ottava #0
c
\ottava #1
c
\ottava #-1
c
\break
\ottava #0
c
\myOttavaUp
c
c
\myOttavaDown
c
c
\ottava #0
c
\myOttavaUp
c
\myOttavaDown
c
}
I think the problem is that the 8 is center-aligned above the center of the
notehead. (Also in the example with two measures per octavation, which
looks not so nice.)
How can I tweak that?
--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
2014-09-23 9:55 GMT+02:00 Pierre Perol-Schneider <
[email protected]>:
> Hi Peter,
>
> 2014-09-23 5:03 GMT+02:00 Peter Crighton <[email protected]>:
>
>
>> is it possible to Y-offset just the line of an ottavaBracket? I want it
>> to be at the top or bottom of the 8 (depending on va or vb).
>>
>
> Try :
>
> \version "2.18.2"
>
> myOttavaUp = {
> \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
> \override Staff.OttavaBracket.bound-details =
> #`((left . ((Y . 0)
> (stencil-align-dir-y . ,UP)))
> (right . ((Y . 0)
> (text . ,(make-draw-dashed-line-markup (cons 0 -1.2))))))
> \override Staff.OttavaBracket.left-bound-info =
> #ly:line-spanner::calc-left-bound-info-and-text
> \override Staff.OttavaBracket.right-bound-info =
> #ly:line-spanner::calc-right-bound-info
> \ottava #1
> }
>
> myOttavaDown = {
> \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
> \override Staff.OttavaBracket.bound-details =
> #`((left . ((Y . 0)
> (stencil-align-dir-y . ,DOWN)))
> (right . ((Y . 0)
> (text . ,(make-draw-dashed-line-markup (cons 0 1.2))))))
> \override Staff.OttavaBracket.left-bound-info =
> #ly:line-spanner::calc-left-bound-info-and-text
> \override Staff.OttavaBracket.right-bound-info =
> #ly:line-spanner::calc-right-bound-info
> \ottava #-1
> }
>
> \relative c'' {
> \myOttavaUp
> c1
> c1
> \myOttavaDown
> c,,1
> c1
> }
>
> HTH,
> Pierre
>
>
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user