lilypond-user
[Top][All Lists]
Advanced

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

Re: Initialize new grob property


From: Urs Liska
Subject: Re: Initialize new grob property
Date: Thu, 26 Jan 2017 10:08:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0


Am 26.01.2017 um 09:56 schrieb Timothy Lanfear:
> Maybe ly:grob-set-object! or ly:grob-set-property! They have identical
> descriptions although the implementations differ.
>

Thanks, but I have the impression that these affect the created object,
basically to do what \override does. But I want to ensure that a grob
*without* any explicit override to still have that default value.

Of course I could test if the propery is set to a meaningful value, but
that sounds somewhat unclear to me.

Best
Urs

>
> On 26/01/17 08:06, Urs Liska wrote:
>> Hi all,
>>
>> I've created a new grob property through
>>
>> #(set-object-property! 'curve-layer 'backend-type? integer?)
>>
>> I can now override this in the music, but it starts with an empty list
>> (it seems, at least that's what is printed). How can I initialize that
>> to, say, 1? I grepped for set-object-property! but didn't find any use
>> from which I could deduce how to do that.
>>
>> I want to do that in the initialization code, without requiring the user
>> to explicitly put an override somewhere in the music or a \layout.
>>
>> Any suggestions? TIA
>> Urs
>>
>>
>

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




reply via email to

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