lilypond-devel
[Top][All Lists]
Advanced

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

Re: Generating music from a list of identifiers


From: David Kastrup
Subject: Re: Generating music from a list of identifiers
Date: Thu, 02 Apr 2015 07:35:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

"Trevor Daniels" <address@hidden> writes:

> David Kastrup wrote Wednesday, April 01, 2015 8:36 PM

>> Untested:
>> 
>> #(simultaneous-music
>>  (filter ly:music?
>>    (map (lambda (x) (ly:parser-lookup parser x))
>>      (map string->symbol AllMusicNames))))
>
> Thanks David.  I must be gaining some small facility
> with Scheme now, as I can understand this immediately
> and appreciate its elegance!  It was using
> simultaneous-music that was escaping me, so thanks to
> you (and Jan-Peter) for pointing that out to me.

You can write

<< #@(filter ly:music? ...) >>

instead if the name escapes you.

-- 
David Kastrup



reply via email to

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