[Top][All Lists]
[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
- [Gnu-music-discuss] Inheritance?, Scott Ballantyne, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?,
Jan Nieuwenhuizen <=
- Re: [Gnu-music-discuss] Inheritance?, Han-Wen Nienhuys, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?, Scott Ballantyne, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?, Han-Wen Nienhuys, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?, Mats Bengtsson, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?, Scott Ballantyne, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?, Mats Bengtsson, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?, Han-Wen Nienhuys, 2000/09/20
- Re: [Gnu-music-discuss] Inheritance?, Scott Ballantyne, 2000/09/21