lilypond-user
[Top][All Lists]
Advanced

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

Re: DevNull produces strange output


From: Janek Warchoł
Subject: Re: DevNull produces strange output
Date: Fri, 10 May 2013 15:24:30 +0200

2012/10/29 David Kastrup <address@hidden>:
> The definition of Devnull is
>
> \context {
>   \name "Devnull"
>   \type "Engraver_group"
>
> %% don't want to route anything out of here:
>   \alias "Staff"
>   \alias "Voice"
>   \description "Silently discards all musical information given to this
> context."
> }
>
> and it is accepted by \Score.  So it will capture overrides to Staff and
> Voice (and Devnull), but anything else will create a context of the
> appropriate type in the containing \Score context and direct the
> override there.
>
> To change this, Devnull would either need to contain more aliases, or it
> would need to \accept the respective contexts itself or have a
> \defaultchild accepting them.  But in the latter cases, those contexts
> would be fully operative, defeating the idea of Devnull.
>
> Should Devnull try to be an alias for every context type?  Good
> question.

I think it should.
Janek



reply via email to

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