lilypond-user
[Top][All Lists]
Advanced

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

Re: Scheme global variables in Lilypond


From: David Kastrup
Subject: Re: Scheme global variables in Lilypond
Date: Tue, 01 Jan 2013 10:21:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Nick Payne <address@hidden> writes:

> In the following lilypond code, why is the value of the scheme
> variable dirn not being changed by the set! command in the updown
> function? The updown function is called on the first line of
> beginStringNum,

No, it isn't.

> beginStringNum = #(define-event-function (parser location strng)
>   (number?)
>   #{
>     \tweak direction #updown

It is _referenced_ on the first line of beginStringNum, and the function
reference is put into the direction field of the grob eventually created
by the event created by \startTextSpan, and when this direction field
gets _referenced_ eventually, updown is finally called.

[...]

>     \startTextSpan
>   #}

-- 
David Kastrup




reply via email to

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