lilypond-user
[Top][All Lists]
Advanced

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

Re: \set vs \override


From: Han-Wen Nienhuys
Subject: Re: \set vs \override
Date: Mon, 23 Nov 2009 22:57:23 -0200

On Mon, Nov 23, 2009 at 12:55 PM, David Kastrup <address@hidden> wrote:
> Han-Wen Nienhuys <address@hidden> writes:
>
>> On Mon, Nov 23, 2009 at 3:56 AM, David Kastrup <address@hidden> wrote:
>>
>>> Right now I don't have the necessary clue level.  Merely a gut hunch.
>>
>> Why dont you invest some time to find out how it really works,
>
> What do you think I am doing?

I think you send a lot of mail.  I suggest reading code; if it were
easy, where would the fun be?


As a hint:

* context properties are time-dependent, exist per Context, and have
different values during the translation process (eg. the key
signature, which is at staff level and changes if you change the
keysig).

* grob-properties are part of the formatting process, and are per
graphic object. Formatting the score is computing the value of each
grob property

* grob properties have defaults (an alist, one per grob type), and
those defaults are stored in a context property. see
scm/define-grobs.scm

* \override and \revert manipulate the defaults stored in said context
property, pushing and popping values off the alist.

-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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