[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unpacking a list
From: |
David Kastrup |
Subject: |
Re: unpacking a list |
Date: |
Sat, 28 Nov 2015 10:52:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> If someone might want to have a second look at the actual code it's
> (currently) in
> https://github.com/openlilylib/snippets/blob/just-intonation-stub/notation-snippets/just-intonation/definitions.ily,
> towards the end where it reads "(append (color-music col) ..."
Well, obviously you could just write
#{ #@(color-music col) $pitch $duration -#(format "address@hidden" cent) #}
instead of
(make-music
'SequentialMusic
'elements
(append
(color-music col)
(list
(make-music
'NoteEvent
'articulations
(list (make-music
'TextScriptEvent
'text (format "address@hidden" cent)))
'pitch pitch
'duration ji-duration))))
And it would likely result in somewhat better point-and-click behavior
out of the box (of course, one can fix the above make-music calls for
the same effect if it's a matter of professional pride).
--
David Kastrup