On 02/02/12 10:21, Thomas Morley wrote:
Hi,2012/2/2 Xavier Scheuer<x.sche...@gmail.com>:On 1 February 2012 22:54, Brent Annable<brentanna...@gmail.com> wrote:Hello all, I'm typesetting a piece with repeats, for which I'm using the "volta 2" construction with a first-time and second-time ending. My problem is that I have a note that is tied from the end of the first ending back to the start of the "volta" section. This doesn't seem to work with a normal tie, so I'm trying to use a \repeatTie and attach it to the right-hand side of the notehead, but I can't figure out how to do it. Here's what I've tried so far: \score { \relative c' { \override RepeatTie #'side-axis = #0 \override RepeatTie #'direction = #RIGHT c2 c2~ \repeat volta 2 { c2 c2 } \alternative { { c2 c2 \repeatTie} {d2 d2} } c2 c2 \bar "|." } } I just can't get it to work, I would be really grateful if someone could explain where I'm going wrong.This is a workaround, but you could use \laissezVibrer instead of using \repeatTie . Hope that helps (a little). Cheers, Xavier -- Xavier Scheuer<x.sche...@gmail.com> _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-usersame suggestion as Xavier. I added a little function to tweak the LaissezVibrerTie, first created by Enternix from the german forum: http://www.lilypondforum.de/index.php?topic=1008.msg5637#msg5637 Of course there are other tweaking methods: via control-points or use the functions of the attached file containing possibilities to tweak Slur, Tie, PhrasingSlur, RepeatTie and LaissezVibrerTie (this is a collection of function from the list). \version "2.14.2" extendTie = #(define-music-function (parser location x) (pair?) #{ \once \override LaissezVibrerTie #'stencil = #(lambda (grob) (let* ((tie-stencil (laissez-vibrer::print grob)) (tie-ext (ly:stencil-extent tie-stencil X)) (tie-length (interval-length tie-ext)) (new-tie-length (+ tie-length (- (cdr $x)(car $x)))) (scale-factor (/ new-tie-length tie-length)) (new-tie-stencil (ly:stencil-scale tie-stencil scale-factor 1)) (new-tie-ext (ly:stencil-extent new-tie-stencil X)) (x-corr (- (car tie-ext) (car new-tie-ext))) (x-shift (car $x))) (ly:stencil-translate-axis new-tie-stencil (+ x-corr x-shift) X))) #}) %--- test \score { \relative c' { c2 c2~ \repeat volta 2 { c2 c2 } \alternative { { c2 \extendTie #'(0 . 1.5) c2 \laissezVibrer } { d2 d2 } } c2 c2 \bar "|." } }
A slightly simpler function to extend a laissezvibrer tie: \version "2.15.25" extendLV = #(define-music-function (parser location further) (number?) #{ \once \override LaissezVibrerTie #'X-extent = #'(0 . 0)\once \override LaissezVibrerTie #'details #'note-head-gap = #(/ further -2) \once \override LaissezVibrerTie #'extra-offset = #(cons (/ further 2) 0)
#}) \relative c' { c2\laissezVibrer \extendLV #3 c\laissezVibrer }
<<attachment: test.png>>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user