Urs Liska <u...@openlilylib.org> writes:

> Am 13.03.2017 um 13:16 schrieb David Kastrup:
>> Urs Liska <u...@openlilylib.org> writes:
>>
>>> Am 13.03.2017 um 13:07 schrieb David Kastrup:
>>>> Urs Liska <u...@openlilylib.org> writes:

>>> I'm calling the function with \override Tie.stencil = #arced-curve-stencil
>>>
>>> which is defined as
>>>
>>> #(define (arced-curve-stencil grob)
>>>    ...
>>>
>>> and returns the result of a (ly:stencil-translate (ly:make-stencil call.
>> The point-and-click area is rectangular and taken from the stencil's
>> position and dimensions, so there is suspicion that they aren't what you
>> want them to be.
>
> OK. That means it could either be where the original grob would have
> been printed or maybe originating before the stencil-translate is
> applied. I'll investigate.

No, stencil-translate obviously should shift the area.  The question is
what dimensions you pass to the make-stencil call.

>>>> With stencils, you should not need to do anything.  When calling
>>>> ly:engraver-make-grob yourself, be sure to specify a good cause.
>>>> Then the originating event's point-and-click info will be
>>>> automatically attached.

>>> As usual the information about ly:engraver-make-grob on the
>>> Scheme-functions page doesn't help me very much. All I would be able
>>> to figure out is the cause, but what kind of "engraver instance"
>>> should I be referring to here?

>> The one passed to the engraver callback?
>
> You mean what I refer to as "grob" in my example?

No.  You don't call ly:engraver-make-grob from within a grob's stencil
callback.  You call it from within the callbacks of an engraver
instance, those which are defined with make-engraver .

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to