Hi
​ all​
,

​
Is there a simpler way to extend an ottava bracket a bit to the left?

In the snippet below, the first bar is the default p
​lacement with no tweaks​
. The second bar achieves what I want by adapting the example "Modifying
the Ottava spanner slope"
​ from the documentation.​ Is it an overkill though? Is there a shorter way
to access the same parameter?

I tried something like \override Staff.OttavaBracket.shorten-pair = #'(-5 .
0) but found this affects only the line, not the text "8va".

Thanks in advance for any help!

Bruno

\version "2.18.2"
\language "english"

{
  \time 6/8
  <e' g' c''>8\arpeggio\pp[
  <as' cs'' fs''>\arpeggio\<
  <ef'' af'' c'''>\arpeggio
  \ottava 1
  <as'' cs''' fs'''>\arpeggio
  <e''' g''' c''''>\arpeggio
  <b''' e'''' g'''' b''''>]\mf\arpeggio \ottava 0

  \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \override Staff.OttavaBracket.bound-details =
  #`((left . ((Y . 0) ; Change the integer here
               (attach-dir . ,LEFT)
               (padding . -4)
               (stencil-align-dir-y . ,CENTER)))
     (right . ((Y . 0) ; Change the integer here
                (padding . 0)
                (attach-dir . ,RIGHT)
                (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


  <e' g' c''>8\arpeggio\pp[
  <as' cs'' fs''>\arpeggio\<
  <ef'' af'' c'''>\arpeggio
  \ottava 1
  <as'' cs''' fs'''>\arpeggio
  <e''' g''' c''''>\arpeggio
  <b''' e'''' g'''' b''''>]\mf\arpeggio \ottava 0


}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to