lilypond-devel
[Top][All Lists]
Advanced

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

Re: using \offset with Slur.positions


From: David Nalesnik
Subject: Re: using \offset with Slur.positions
Date: Thu, 10 Apr 2014 16:39:00 -0500


Hi,

On Tue, Apr 8, 2014 at 7:53 PM, Paul Morris <address@hidden> 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 


reply via email to

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