lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Harp Pedal Spanners


From: Alexandre Loomis
Subject: Re: Harp Pedal Spanners
Date: Wed, 7 Jun 2023 09:59:44 -0700

Your code is much more readable, but I'm not sure I understand the difference between first and second take?
I just noticed, where I have -3 it is a typo, it should be positive 3

Alex Loomis

On Wed, Jun 7, 2023 at 9:24 AM David Kastrup <dak@gnu.org> wrote:
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]