[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Anybody has a good explanation for _this_ use of grob-transformer?
From: |
David Kastrup |
Subject: |
Re: Anybody has a good explanation for _this_ use of grob-transformer? |
Date: |
Tue, 30 Jan 2018 01:10:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
>> %% no fail
>> \override TupletNumber.Y-offset =
>> #(ly:make-unpure-pure-container
>> (lambda (grob) (+ (ly:tuplet-number::calc-y-offset grob) 1))
>> (lambda (grob start end) 1))
>> \tuplet 3/2 4 {
>> c,,8 d e f g a b c d e f g
>> c,,8^> d e f^> g a b^> c d e^> f g }
>> }
>
> Ok, this means that at pure time, ly:tuplet-number::calc-y-offset must
> not be called at all or it will ride roughshod over the X offset. We'll
> get the hang of it yet.
At any rate, one point of grob-transformer is that it should work for
any kind of value/callback, and it clearly doesn't here. So either the
theory underlying it is wrong, or the implementation.
--
David Kastrup