lilypond-user
[Top][All Lists]
Advanced

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

Function to apply durations to all notes in a list?


From: stefano franchi
Subject: Function to apply durations to all notes in a list?
Date: Tue, 9 Mar 2021 22:52:14 -0600

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

stefano.franchi@gmail.com

reply via email to

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