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: MING TSANG
Subject: Re: scheme code generate variable series with leading "\"
Date: Tue, 9 Aug 2016 10:20:46 +0000 (UTC)

David,  thank you for the scheme code for me. It works and save lots of typing.  Thank you very much.

Thomas, how to use "$@(reverse (map cdr mel))"?

Jan-peter, thank you for showing me another way of doing this.

Immanuel,
Ming



From: Thomas Morley <address@hidden>
To: David Kastrup <address@hidden>
Cc: MING TSANG <address@hidden>; Lilypond-usermailinglist <address@hidden>
Sent: Monday, August 8, 2016 10:51 AM
Subject: Re: scheme code generate variable series with leading "\"

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]