[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lyrics and Repeats
From: |
David Wright |
Subject: |
Re: Lyrics and Repeats |
Date: |
Tue, 18 May 2021 22:21:15 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Sat 15 May 2021 at 21:40:53 (-0700), Aaron Hill wrote:
> lyricSkip =
> #(define-music-function
> (count) (integer?)
> "Inserts the specified number of lyric skips."
> #{ \repeat unfold #count \skip 1 #})
Might I suggest an extension to this neat little function:
The extended function would insert a lyric, probably a literal,
defined in the function itself, and then skip one less than the
number supplied. As can be seen from the attached example (which
explains the rationale), the literal might be defined as "",
or an unbreakable space, or somesuch. (Someone including the
function could choose what to use.)
How to decrement a variable might be straightforward to work out
from somebody's contributed code, but skipping the skip when the
count is 1 would be beyond me. (\skip 0 raises an error.)
Cheers,
David.
skipping.ly
Description: Text document
skipping.pdf
Description: Adobe PDF document
Re:Lyrics and Repeats, Carl Sorensen, 2021/05/18