Ha! Very interesting. Thanks!! Bruno
On Wed, Aug 12, 2015 at 5:42 PM, tisimst <tisimst.lilyp...@gmail.com> wrote: > Bruno, > > > 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 > > > } > > > This is a little bit funny, but it works almost equally well for the case > you show (and with fewer lines of code): > > { > \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? > <http://lilypond.1069038.n5.nabble.com/extending-an-OttavaBracket-to-the-left-tp179525p179527.html> > Sent from the User mailing list archive > <http://lilypond.1069038.n5.nabble.com/User-f3.html> at Nabble.com. > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user