Alexandre Loomis <[email protected]> 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

Reply via email to