gnu-music-discuss
[Top][All Lists]
Advanced

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

Re: [Gnu-music-discuss] Inheritance?


From: Jan Nieuwenhuizen
Subject: Re: [Gnu-music-discuss] Inheritance?
Date: Wed, 20 Sep 2000 08:29:24 +0200

On Wednesday, 20 September 2000, Scott Ballantyne writes:
> In the manual, I read:
> 
>   Properties that are set in one context are inherited by all of the
>   contained contexts. This means that a property valid for the Voice
>   context can be set in the Score (for example) and thus take effect
>   in all Voice contexts.
> 
> So I tried:
> 
> -------
> \score{
>    \notes \context Voice
>       {
>    \property Voice.tupletBracketVisibility = ##f
>    \property Voice.tupletNumberVisibility = ##f

As the quoted text indicates, inheritance works from parent to
child, not the other way around.  The Repeat-engraver is included
in the staff-context, so it won't see anything in its childs,
eg a voice.

>  
>        \first
>       }
>       \paper
>        {
>        \translator{
>           \StaffContext
>         \remove "Time_signature_engraver";
>         \remove "Bar_number_engraver";
>         }
>       }
> }
> ---------
> 
> But none of the Voice context's in 'first' are affected by the
> above. So, either I'm doing something wrong (probably) or there's a
> bug either in lilypond or the manual.
> 
> sdb
> 
> _______________________________________________
> Gnu-music-discuss mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnu-music-discuss
> 

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


reply via email to

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