|
From: | David Nalesnik |
Subject: | Re: lengthening broken ties |
Date: | Tue, 3 Feb 2015 12:43:45 -0600 |
Folks,
I'm trying to work around an old problem of broken ties in tightly
setted music: They can degenerate to a dot, having no horizontal
extensions anymore. Following the example in section `Difficult
tweaks' of the notation reference (with slight changes to change the
property for all siblings but the first one), I tried this:
#(define (set-minimum-length grob)
(let* ((orig (ly:grob-original grob))
(siblings (if (ly:grob? orig)
(ly:spanner-broken-into orig)
'())))
(if (and (> (length siblings) 1)
(not (eq? (car siblings) grob)))
(ly:grob-set-property! grob 'minimum-length 20))))
\paper {
indent = 0
line-width = 50\mm
ragged-right = #f
}
{
\override Tie.after-line-breaking = #set-minimum-length
c''1 ~ \break
c''1
}
However, this has no effect. I guess this is because because the
`after-line-breaking' callback is invoked too late in the formatting
process.
Is there a possibility to make this work?
[Prev in Thread] | Current Thread | [Next in Thread] |