lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a property from *antoher* grob in callback


From: Urs Liska
Subject: Re: Getting a property from *antoher* grob in callback
Date: Mon, 13 Feb 2017 10:34:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0


Am 13.02.2017 um 10:24 schrieb Thomas Morley:
> 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?

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

-- 
address@hidden
https://openlilylib.org
http://lilypondblog.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]