Knut Petersen <knut_peter...@t-online.de> writes: > Hi everybody! > > I think it would be useful to add a repeat-type "none" to the > repeat-types-alist in unfold-repeats (music-functions.scm), e.g. > > (define-public (unfold-repeats types music) > "Replace repeats of the types given by @var{types} with unfolded > repeats. > If @var{types} is an empty list, @code{repeated-music} is taken, unfolding > all." > (let* ((types-list > (if (or (null? types) (not (list? types))) > (list types) > types)) > (repeat-types-alist > '((volta . volta-repeated-music) > (percent . percent-repeated-music) > (tremolo . tremolo-repeated-music) > + *(none . music)* > (() . repeated-music))) > > An example that demonstrates the reason for my request is attached. Any > objections?
Huh. I'd rather have #f stand for the default, and '() for none. That seems like a saner interface since an empty list carries obvious meaning. Not backwards-compatible but I think this one has not been released in a stable release yet. -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel