lilypond-user
[Top][All Lists]
Advanced

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

Re: Getting context-definiton, while being in applyContext


From: David Kastrup
Subject: Re: Getting context-definiton, while being in applyContext
Date: Sun, 18 Nov 2018 22:16:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> As a side-effect of this thread I learned that doing
>     whatever = \context Staff \applyContext #(lambda (ctx) ...)
> will affect Staff _and_ all it's alias. Furthermore it can be put as
> is into \with or \layout or directly into music.

All with different effect.  In \with, it will affect the current
context, no questions asked.  In \layout (or \midi), it will affect
_all_ context definitions of the respective output definition having an
alias to Staff .  Directly in music, it will walk the hierarchy upwards
until finding a context aliased to Staff and will affect only that.

-- 
David Kastrup



reply via email to

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