|
From: | Timothy Lanfear |
Subject: | Re: Vertical positions of slurs and accents |
Date: | Fri, 27 Sep 2024 16:45:30 +0100 |
User-agent: | Mozilla Thunderbird |
On Fri, 2024-09-27 at 07:54 -0700, Knute Snortum wrote:
On Fri, Sep 27, 2024 at 7:42 AM David Sumbler <david@aeolia.co.uk> wrote:
How do I persuade Lilypond to position all accent marks inside slurs? At the moment, in a passage containing numerous accents and slurs, I am finding that some accents are outside the slur and some inside, which looks a mess!
It's hard to help you with a Minimum WorkingExample (MWE, see https://lilypond.org/tiny-examples.html) but a sledgehammer approach would be to use...
\override Script.avoid-slur = #'inside
This will force ALL Scripts inside of the slurs, but that means other things like pralls and turns too. You could do them one by one with:
\tweak avoid-slur = #'inside
Post a MWE for us to work with and we'll give you a better answer.
Thanks - that's perfect. The difficulty I had was that I couldn't figure out what class of object an accent is. I had already tried
\override TextScript.avoid-slur = #'inside
but this of course doesn't work. I couldn't find out from the documentation how accents etc. are classified, although I expect it is there somewhere.
If you would like to modify the avoid-slur behaviour of all accents (but not other articulations) you could try this.
\version "2.24.0"
#(let* ((name 'accent)
(newvalue '(avoid-slur . inside))
(articulation (assoc-ref default-script-alist name)))
(set! articulation (assoc-remove! articulation (car
newvalue)))
(set! articulation (assoc-set! articulation (car newvalue)
(cdr newvalue)))
(set! default-script-alist (assoc-set! default-script-alist
name articulation)))
{
a'4( b'^\trill c''^> d'')
}
-- Timothy Lanfear, Bristol, UK.
[Prev in Thread] | Current Thread | [Next in Thread] |