When to use overrideProperty instead of override?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

When to use overrideProperty instead of override?

Trevor Bača-2
Seems like

    \overrideProperty
    #"Score.NonMusicalPaperColumn"
    #'line-break-system-details
    #'((fixed-alignment-extra-space . 15))

works great, but that

    \override Score.NonMusicalPaperColumn #'line-break-system-details
= #'((fixed-alignment-extra-space . 15))

is silent.


Question: what's the intent of \overrideProperty? (Ie, when's the
right time to use \overrideProperty instead of \override?)


--
Trevor Bača
[hidden email]

_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: When to use overrideProperty instead of override?

Han-Wen Nienhuys
Trevor Bača wrote:

> Seems like
>
>     \overrideProperty
>     #"Score.NonMusicalPaperColumn"
>     #'line-break-system-details
>     #'((fixed-alignment-extra-space . 15))
>
> works great, but that
>
>     \override Score.NonMusicalPaperColumn #'line-break-system-details
> = #'((fixed-alignment-extra-space . 15))
>
> is silent.
>
>
> Question: what's the intent of \overrideProperty? (Ie, when's the
> right time to use \overrideProperty instead of \override?)

\override changes the initialization of a Grob. Since
Score.NonMusicalPaperColumn grobs are created and initialized before a
normal \override is processed, it has no effect on
Score.NonMusicalPaperColumn doesn't work.

--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: When to use overrideProperty instead of override?

Trevor Bača-2
On 12/30/05, Han-Wen Nienhuys <[hidden email]> wrote:

> Trevor Bača wrote:
> > Seems like
> >
> >     \overrideProperty
> >     #"Score.NonMusicalPaperColumn"
> >     #'line-break-system-details
> >     #'((fixed-alignment-extra-space . 15))
> >
> > works great, but that
> >
> >     \override Score.NonMusicalPaperColumn #'line-break-system-details
> > = #'((fixed-alignment-extra-space . 15))
> >
> > is silent.
> >
> >
> > Question: what's the intent of \overrideProperty? (Ie, when's the
> > right time to use \overrideProperty instead of \override?)
>
> \override changes the initialization of a Grob. Since
> Score.NonMusicalPaperColumn grobs are created and initialized before a
> normal \override is processed, it has no effect on
> Score.NonMusicalPaperColumn doesn't work.
OK.

So summary: use \override for overriding almost all grob properties;
use \overrideProperty only for properties belonging to those few grobs
like Score.NonMusicalPaperColumn that are created *prior to* normal
\override processing.

Thanks for the explanation.


--
Trevor Bača
[hidden email]

_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user