lilypond-devel
[Top][All Lists]
Advanced

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

Re: A few questions regarding markup


From: Nicolas Sceaux
Subject: Re: A few questions regarding markup
Date: Sun, 15 Nov 2009 20:16:51 +0100

Le 14 nov. 2009 à 09:29, David Kastrup a écrit :

> Now the harp-pedal command defines the property signature
> 
>  ((size 1.0)
>   (harp-pedal-details)
>   (thickness 0.5))
> 
> So far, so fine.  It
> then calls make-harp-pedal without passing it those let-bound
> variables.  As far as I understand Scheme and its closures, this means
> that the defaults specified in this manner are ignored.
> 
> make-harp-pedal then starts off with
> 
>  (let* ((size (chain-assoc-get 'size props 1.2))
>        (details (chain-assoc-get 'harp-pedal-details props '()))
> 

Just remove the useless binding of `size' in the let form, 
and give the appropriate default in the property argument.

Nicolas





reply via email to

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