[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Harp Pedal Spanners
From: |
David Kastrup |
Subject: |
Re: Harp Pedal Spanners |
Date: |
Wed, 07 Jun 2023 18:24:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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