|
From: | Bruno Ruviaro |
Subject: | Re: extending an OttavaBracket to the left? |
Date: | Wed, 12 Aug 2015 17:52:53 -0700 |
Bruno,This is a little bit funny, but it works almost equally well for the case you show (and with fewer lines of code):
On 8/12/2015 6:07 PM, Bruno Ruviaro [via Lilypond] wrote:
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
}
{
\time 6/8
<e' g' c''>8\arpeggio\pp\<[
<as' cs'' fs''>\arpeggio
<ef'' af'' c'''>\arpeggio
\ottava 1
\override Staff.OttavaBracket.shorten-pair = #'(-6 . -0.6)
\set Staff.ottavation = #"8va "
<as'' cs''' fs'''>\arpeggio
<e''' g''' c''''>\arpeggio
<b''' e'''' g'''' b''''>]\mf\arpeggio \ottava 0
}
I found that you adjust the number of spaces after "8va" and then tweak the first value of "shorten-pair" to match.
HTH,
Abraham
View this message in context: Re: extending an OttavaBracket to the left?
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |