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 <thomasmorle...@gmail.com>
 To: David Kastrup <d...@gnu.org> 
Cc: MING TSANG <tsan...@rogers.com>; Lilypond-usermailinglist 
<lilypond-user@gnu.org>
 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 <d...@gnu.org>:
> Thomas Morley <thomasmorle...@gmail.com> writes:
>
>> 2016-08-08 13:49 GMT+02:00 MING TSANG <tsan...@rogers.com>:
>>> 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
>>> lilypond-user@gnu.org
>>> 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


  
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to