|
From: | David Nalesnik |
Subject: | Re: using \offset with Slur.positions |
Date: | Tue, 8 Apr 2014 07:46:37 -0500 |
Hi Werner,
The reason this won't work is that there is no value or procedure to be found in define-grobs.scm for Slur.positions to use for a default to offset against. Could such a procedure be offered?BTW, there's a snippet which "offsets positions" (unfortunately, I'm not able to open the LSR to look it up). It offsets the Y-coordinate of the outer control-points then applies these values to 'positions.
\version "2.19.3"
offsetPositions =
#(define-music-function (parser location) ()
#{
\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)
}
[Prev in Thread] | Current Thread | [Next in Thread] |