lilypond-devel
[Top][All Lists]
Advanced

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

Re: Context aliases


From: Erik Sandberg
Subject: Re: Context aliases
Date: Mon, 6 Nov 2006 16:56:05 +0100
User-agent: KMail/1.9.5

On Monday 06 November 2006 13:04, Han-Wen Nienhuys wrote:
> Erik Sandberg escreveu:
> > hi,
> >
> > In my quest for softcoding context-defs, I will need to revisit the
> > \alias system. This is not on the top of my todo, but I'd like to hear
> > any protests early.
> >
> > I suggest that the \alias mechanism is scrapped altogether, and replaced
> > with something else:
> > - junk Bottom alias, instead make is_bottom_context accessible from
> > scheme. - other aliases are replaced with appropriate boolean context
> > properties, with more intuitive names (e.g. property 'isLyricMelody
> > replaces current \alias Voice).
> >
> > I think this will be an improvement, because we remove the concept of
> > aliases, which confuses users (at least it confuses me a bit); in
> > addition we don't need to do anything extra to softcode aliases.
>
> I don't understand. How will this work in practice?  Ie. if I do
>
>    \set Timing.measurePosition = #..
>
> how will it be processed?

We will have to change that to an \applyContext which finds/creates a context 
with the 'timing property set, something like
\findContextWithPredicate #'timing \set measurePosition = #...

-- 
Erik




reply via email to

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