lilypond-user
[Top][All Lists]
Advanced

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

Re: make-connected-path-stencil with variables and connected paths


From: David Kastrup
Subject: Re: make-connected-path-stencil with variables and connected paths
Date: Sun, 20 Oct 2013 12:18:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> Hi Paul,
>
> 2013/10/20 Paul Morris <address@hidden>:
>> Hi all,  I'm trying to use make-connected-path-stencil, but it's not working 
>> as expected, in two ways.  Here's a tiny example:
>>
>> %%%%%%%%%%%%
>>
>> \version "2.17.28"
>>
>> myStencil =
>> #(let* ((A 0) (B 1))
>>    (make-connected-path-stencil
>>     '((A B) (B B) (A A)) ;; <-- variables can't be used in pointlist?
>>     0.1
>>     1
>>     1
>>     #f ;; <-- error when connect is set to #t
>>     #t))
>>
>> %%%%%%%%%%%%
>>
>> 1. Using variables in the pointlist gives this GUILE error:
>> Wrong type: A
>
> you have to ensure that the elements of the list are evaluated.
> Look at the different output from:
>
> #(let* ((A 0) (B 1))
>  (display `((,A ,B)(,B ,B)(,A ,A))))
>
> #(let* ((A 0) (B 1))
>  (display '((A B)(B B)(A A))))
>
> David explained this recently far better than I could, can't find it
> at the moment, though,

Probably
<URL:http://lists.gnu.org/archive/html/lilypond-user/2013-10/msg00522.html>

-- 
David Kastrup




reply via email to

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