[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding durations (for \after)
From: |
David Kastrup |
Subject: |
Re: Adding durations (for \after) |
Date: |
Wed, 09 Nov 2022 16:11:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
"Joel C. Salomon" <joelcsalomon@gmail.com> writes:
> <https://lilypond.org/doc/v2.23/Documentation/notation/writing-rhythms#scaling-durations>
> says:
>
>> Factors may also be added by using Scheme expressions evaluating to a
>> number or musical length like `*#(ly:music-length music)`.
>
> Is there an example of such addition handy?
>
> The stripped-down example below works, but `\after 8*9' would be
> better written `\after #( <something involving 2. and 4.> )`.
>
> The best I could glean from the documentation looks something like:
>
> \after #(ly:moment-add (ly:make-duration 2 1) (ly:make-duration 4 1))
>
> ... except that yields a type error because I’m creating durations not
> moments.
Maybe something like
\after #(make-duration-of-length (ly:music-length #{ 2. 4. #}))
Arguably it would make sense for \after to just accept example music as
the delay specification.
--
David Kastrup
- Adding durations (for \after), Joel C. Salomon, 2022/11/09
- Re: Adding durations (for \after),
David Kastrup <=
- Re: Adding durations (for \after), Lukas-Fabian Moser, 2022/11/09
- Re: Adding durations (for \after), Jean Abou Samra, 2022/11/09
- Re: Adding durations (for \after), Lukas-Fabian Moser, 2022/11/10
- Re: Adding durations (for \after), Jean Abou Samra, 2022/11/10
- Re: Adding durations (for \after), Jean Abou Samra, 2022/11/10
- Re: Adding durations (for \after), Joel C. Salomon, 2022/11/10
- Re: Adding durations (for \after), David Kastrup, 2022/11/10
- Re: Adding durations (for \after), Jean Abou Samra, 2022/11/11
- Re: Adding durations (for \after), Kieren MacMillan, 2022/11/11
- Re: Adding durations (for \after), Jean Abou Samra, 2022/11/11