Nick Payne <nick.pa...@internode.on.net> 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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user