Hi,

On Tue, Apr 8, 2014 at 7:53 PM, Paul Morris <[email protected]> wrote:

 Looks like this can be simplified as follows.  Cheers, -Paul
>
> \version "2.19.2"
>
> offsetPositions =
> \override Slur.positions =
> #(lambda (grob)
>    (cons
>     (cdar (ly:slur::calc-control-points grob))
>     (cdar (reverse (ly:slur::calc-control-points grob)))))
>
> \relative c' {
>   \offsetPositions
>   \once \offset positions #'(5 . 5) Slur
>   c'2( c)
>   \once \offset positions #'(2 . 2) Slur
>   c2( c)
>   c2( c)
> }
>

Yes, it certainly can--thanks.

This is just a workaround, though.  I'm looking to create some sort of
Scheme callback for positions in slur-scoring.cc, to which positions would
be set in define-grobs.scm (also for PhrasingSlur).  Positions would have
as its default the bounding Y-coordinates of Lily's ideal slur, instead of
being unset.  I've got something that works, but I need to think about it
some before I post a patch.

--David
_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to