[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ly:make-stencil arguments question
From: |
Urs Liska |
Subject: |
Re: ly:make-stencil arguments question |
Date: |
Thu, 19 Jan 2017 10:13:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
Am 19.01.2017 um 09:59 schrieb David Kastrup:
> Urs Liska <address@hidden> writes:
>
>> Am 18.01.2017 um 21:18 schrieb Thomas Morley:
>>> customClefStencilOne =
>>> #(ly:make-stencil `(path 0.2 ',(func 1))
>> ... I wouldn't have ever thought of that ', combination.
>>
>> I had yet another complication because in my actual case "func" would
>> return an arbitrary number of path segments (i.e. lists) that had to be
>> flattened with
>>
>> (apply append (map l-arc (make-list l-count dir)))
> (append-map l-arc (make-list l-count dir))
Thank you, this seems to be the appropriate expression.
>
> And if you need to _splice_ the result in as multiple elements rather
> than a single list expression use ,@ instead of , for the splicing.
> That removes the outer pair of parens, so to say.
Well, in my case (for the path expression) I do need the list, so it's
perfectly sufficient now.
But just for my enlightenment: to use splicing I have to quasiquote the
expression, isn't it?
Urs
--
address@hidden
https://openlilylib.org
http://lilypondblog.org