On 2025-09-14 13:33, Simon Albrecht wrote:
Hi everyone,

just figured I’d recommend a bit of trickery with LilyPond input syntax that makes my work transcribing music a lot easier and more pleasant. This is about repetitive structures with small variations, and I suspect many might not be aware of these possibilities (yet).

Want to use \repeat unfold, but the first note has a different articulation or a slur starting? Insert a zero-duration empty chord to add these articulations/spanners to:

\version "2.25.28"
{ <>(-> \repeat unfold 6 { c'8 c'' } c'4) r }

Yes, zero duration chords are useful every now and then. You may also find the \after command (which was added in version 2.24) very useful in these situations, for example:

{ \after 1 ( \repeat unfold 6 { c'8 c'' } c'4) r }

However, if you for example want to add both a starting slur and an articulation, you have to combine that with your trick with a zero-duration chord:

{ \after 1 <>(-> \repeat unfold 6 { c'8 c'' } c'4) r }

    /Mats


Reply via email to