bug-lilypond
[Top][All Lists]
Advanced

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

Re: Contexts do not inherit...


From: Rune Zedeler
Subject: Re: Contexts do not inherit...
Date: Wed, 28 Aug 2002 11:11:55 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Rune Zedeler wrote:

In this case the solution is to set the property on Staff-level - ensuring that the new voices properly inherit the property.

If you desperately need not to affect the whole staff then you can add an extra context between voice and staff: Add this in your paper block:

        \translator {
            \StaffContext
            \denies Voice
            \accepts VoiceContainer
        }
        \translator {
            \type "Engraver_group_engraver"
            \name VoiceContainer
            \accepts Voice
        }

Now you have a new context between staff and voice (named VoiceContainer) - and you can set properties in this.

\context VoiceContainer {
   c d e f
   < { c d e f } // { c d e f } >
}

will create voices in the same voice container and hence all voices in the above will inherit propertis from the voicecontainer.

-Rune





reply via email to

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