[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Find Voice/etc. context from Staff/etc. context
From: |
David Kastrup |
Subject: |
Re: Find Voice/etc. context from Staff/etc. context |
Date: |
Wed, 11 Jul 2018 10:33:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> One more understanding question regarding contexts and engravers.
>
> If I \consist an engraver in a bottom context like Voice I can travel
> up the chain of parent contexts, retrieving their name and id
> properties. But if I \consist it in Staff level contexts I don't see
> if/how I can get to the bottom-level context a grob is possibly in.
To be in any meaningful way "in a bottom-level context", a grob needs to
be made by an engraver at bottom level. In that case you can call
ly:translator-context on the third argument of the grob acknowledger
which is the _source_ engraver rather than the current engraver.
--
David Kastrup