lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scheme code generate variable series with leading "\"


From: Thomas Morley
Subject: Re: scheme code generate variable series with leading "\"
Date: Mon, 8 Aug 2016 16:51:31 +0200

2016-08-08 14:15 GMT+02:00 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> 2016-08-08 13:49 GMT+02:00 MING TSANG <address@hidden>:
>>> Dear lilyponders:
>>> I do not know scheme code. Can scheme code to generate variable series with
>>> leading "\"?
>>> Detail question in the lily file attachment.
>>> Thank you for any help.
>>> Immanuel,
>>> Ming.
>>>
>>>
>>> _______________________________________________
>>> lilypond-user mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>>
>>
>> $@(reverse (map cdr mel))
>
> Ah, but the order in that is only "accidentally" correct.  If you define
> the pieces in a separate order, they will come out in different order.
> See my somewhat more tedious solution elsewhere.



True, ofcourse.

But the syntax allows for
mel.foo = { ... }
as well.
Your approach as well as Jan-Peters would fail on it.

Obviously the user is responsible in which order he/she defines. So
why not the most simple...

Or the user needs to sort the alist to fit his/her needs anyway.

Cheers,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]