[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting a property from *antoher* grob in callback
From: |
Thomas Morley |
Subject: |
Re: Getting a property from *antoher* grob in callback |
Date: |
Mon, 13 Feb 2017 10:24:38 +0100 |
2017-02-13 10:18 GMT+01:00 Urs Liska <address@hidden>:
> Hi all,
>
> I'm creating a stencil (Slur) for compound slurs. WIthin that function
> (define-event-function) I'd like to access a property from a certain
> grob and don't know how to do that.
>
> I need to determine the thickness of a line through the grob property
> 'thickness. But a slur's thickness (which I can retrieve) is taken as a
> factor of Staff.StaffSymbol.thickness. So in order to match the line
> thickness with that of regular slurs I need to access that StaffSymbol's
> property.
>
> How can I access a grob property if I don't have the actual grob
> available (i.e. the reverse of \override)?
>
> TIA
> Urs
Hi Urs,
I don't understand the problem entirely. But from IR
"
Function: ly:staff-symbol-line-thickness grob
Returns the current staff-line thickness in the staff associated with
grob, expressed as a multiple of the current staff-space height.
"
Does it already help?
Cheers,
Harm