[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \unfoldRepeats type none
From: |
David Kastrup |
Subject: |
Re: \unfoldRepeats type none |
Date: |
Mon, 23 Apr 2018 14:21:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Knut Petersen <address@hidden> 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