[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Functions with after-events
From: |
Leo Correia de Verdier |
Subject: |
Re: Functions with after-events |
Date: |
Wed, 2 Oct 2019 11:44:37 +0200 |
Thanks a lot!
I need to look into event functions more!
> 2 okt. 2019 kl. 11:34 skrev Pierre Perol-Schneider <address@hidden>:
>
> Hi Leo,
> How about:
>
> \version "2.19.83"
>
> glissandoWithMinLength = #(define-event-function (parser location arg)
> (number?)
> #{
> \tweak minimum-length #arg
> \tweak springs-and-rods #ly:spanner::set-spacing-rods
> \glissando
> #})
>
> \fixed c'' { d8 \glissandoWithMinLength10 cis }
>
> Cheers,
> Pierre
>
> Le mer. 2 oct. 2019 à 11:18, Leo Correia de Verdier <address@hidden> a écrit :
> Dear list!
>
> Something of a still learning question, but I can’t really get my head around
> it:
>
> Is there a simple way to make the following (or something that would have the
> same effect) into a function?
>
> \version "2.19.82"
> \fixed c'' {
> d8
> -\tweak minimum-length #5
> -\tweak springs-and-rods #ly:spanner::set-spacing-rods
> \glissando
> cis }
>
> So it could be written as something like the following hypothetical code:
>
> d8 \glissandoWithMinLength #5 cis
>
> Or is it just too complicated to be worth it?
>
> Thanks a lot!
> /Leo
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user