Never mind the noise,
the \shiftDurations built-in function is exactly what I need, and it is
properly documented in the snippet section of the manual:

Automatically change durations

shiftDurations can be used to change the note lengths of a piece of music.

It takes two arguments - the scaling factor as a power of two, and the
number of dots to be added as a positive integer.

On Tue, Mar 9, 2021 at 10:52 PM stefano franchi <[email protected]>
wrote:

> Is there a built-in lilypond function that would take a list of notes and
> a duration and apply the latter to each member of the former? Say you have
> a common triad
>
> triad = { c e g }
>
> and you would like to apply durations, e.g. 4 and 8, to produce patterns
> like {c4 e g}, {c8 e g}, etc.
> Something like
>
> \changeDuration 4 \triad ==> {c4 e g}
> \changeDuration 8 \triad ==> {c8 e g}
>
> There is a lilypond scaleDuration function but it does not change the
> appearance of the notes, only their value in internal computations and midi
> production.
>
> If such a function must be written, I would appreciate pointers on how to
> proceed, as I have not written a line of lisp in decades.
>
> Cheers,
>
> S.
>
> --
> __________________________________________________
> Stefano Franchi
>
> [email protected] <[email protected]>
> *https://www.researchgate.net/profile/Stefano_Franchi*
> <https://www.researchgate.net/profile/Stefano_Franchi>
>


-- 
__________________________________________________
Stefano Franchi

[email protected] <[email protected]>
*https://www.researchgate.net/profile/Stefano_Franchi*
<https://www.researchgate.net/profile/Stefano_Franchi>

Reply via email to