Re: Function to apply durations to all notes in a list?

2021-03-09 Thread stefano franchi
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 f

Function to apply durations to all notes in a list?

2021-03-09 Thread stefano franchi
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 li