bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc modification


From: James
Subject: Re: doc modification
Date: Mon, 01 Sep 2014 19:32:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 26/06/14 00:33, David Nalesnik wrote:
On Wed, Jun 25, 2014 at 3:02 PM, Pierre Perol-Schneider <
address@hidden> wrote:

Hi,

This thread :

http://lilypond.1069038.n5.nabble.com/Positioning-spanner-at-different-height-after-line-break-td163618.html

made me think that maybe it would be good to find another example for this
part :

http://www.lilypond.org/doc/v2.18/Documentation/extending/difficult-tweaks.html

since it's now easy to tweak with the \alterBroken command.


Perhaps with a nested property (which \alterBroken won't handle)?

It's worth noting that the example in the NR changes 'extra-offset through
'after-line-breaking.  The example can be adapted to work directly as an
override of 'extra-offset (which is what \alterBroken does essentially):

#(define (my-callback grob)

   (let* (

            ;; have we been split?

            (orig (ly:grob-original grob))

            ;; if yes, get the split pieces (our siblings)

            (siblings (if (ly:grob? orig)

                              (ly:spanner-broken-into orig)

                              '())))

     (if (and (>= (length siblings) 2)

                  (eq? (car (last-pair siblings)) grob))

         '(-2 . 5))))


\relative c'' {

   \override Tie.extra-offset = #my-callback

   c1 ~ \break

   c2 ~ c

}


--David
_______________________________________________
bug-lilypond mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Hello,

http://code.google.com/p/lilypond/issues/detail?id=4090

I think David N and I got sidetracked about a display issue of the existing tweak using lilypond, lilypond-book and how the doc images are created.

So if David N, you can think of a better example using '.. a nested property' (whatever that is :) ) then I feel free to make a patch or update the tracker and I can make a patch.

James





reply via email to

[Prev in Thread] Current Thread [Next in Thread]