[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: context inheritance?
From: |
David Kastrup |
Subject: |
Re: context inheritance? |
Date: |
Fri, 03 May 2013 03:27:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Kieren MacMillan <address@hidden> writes:
> Hi all,
>
> I want to define a "tree" of contexts like
>
> \Staff
> \PianoSingleStaff
> \PianoSingleStaffRH
> \PianoSingleStaffLH
> \ReductionSingleStaff
> \ReductionSingleStaffRH
> \ReductionSingleStaffLH
>
> and then, in my music (e.g., in a reusable variable), I'd like to say
>
> \change Staff …
>
> or
>
> \override Staff …
>
> and have any of the seven contexts listed above respond to that command.
>
> So far, my attempts (using \alias, etc.) have failed. This isn't a
> case, I think, where a minimal example will help — either it's
> possible to do this (and thus probably easy to describe how), or it's
> a non-Lilypond philosophy, and I should give up on it. Any help would
> be appreciated.
Which version?
At any rate, if all of the above contexts have an alias to Staff, any
active context in the current hierarchy will be found. If not, things
get more complicated, involving \defaultchild.
--
David Kastrup