Am 13.02.2017 um 10:24 schrieb Thomas Morley:
> 2017-02-13 10:18 GMT+01:00 Urs Liska <u...@openlilylib.org>:
>> 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?

I'll have to get my function to the state where it properly uses it, but
I have the impression this gives me what I need.
Sorry for not having found it myself.

Urs

PS: This looks like we'll have multi-segment slurs *without* the
thinning at inflection points. Which implies that it will be possible to
print *proper* flat slurs :-)

> Cheers,
>   Harm

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


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

Reply via email to