|
From: | Alexandre Loomis |
Subject: | Re: Harp Pedal Spanners |
Date: | Wed, 7 Jun 2023 09:59:44 -0700 |
Alexandre Loomis <alexandreloomis@gmail.com> writes:
> Thanks, that was very helpful! Adding \tweak padding 1 to the original
> function and defining a continue function by
> nextPed =
> #(define-music-function (end-text) (markup?)
> #{
> \tweak bound-details.left.padding -3
> \startPed "" #end-text
> #})
> makes many cases work or almost work by default. It still requires some
> tweaking, but far less.
That looks like it could instead be defined as
nextPed = -\tweak bound-details.left.padding -3
\startPed "" \etc
Note that this creates an "event function" instead of a "music function"
since that is more appropriate for a \startTextSpan command which can
only be applied attached to some rhythmic event. That way you can write
c'\nextPed
instead of
c'-\nextPad
and have LilyPond recognize this in the first take (there has been a
"second take" around for a few version that obscurs the distinction, but
it will still show in the output of
\displayLilyMusic c'\nextPad
and similar constructs).
--
David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |