lilypond-user
[Top][All Lists]
Advanced

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

Re: Property overrides by ID (discussion)


From: David Kastrup
Subject: Re: Property overrides by ID (discussion)
Date: Fri, 07 Apr 2017 10:16:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Urs Liska <address@hidden> writes:

> Hi,
>
> I've done a first implementation of an ID based property override, which
> is sort of a complement to the edition-engraver. It's significantly less
> complex than the edition-engraver, has some advantages over it, but also
> significant limitations.
>
> If you want to have a closer look you may inspect the pull request at
> https://github.com/openlilylib/edition-engraver/pull/14.
>
> What it *can* do is apply any property override that could be achieved
> with \once \override or \tweak to grobs addressed by an ID. This means
> it isn't necessary anymore to bother with finding out when and in which
> context the item is. Simply add an ID to it and address it, and there
> you go, completely robust against changes in context and timing.
>
> However, at least at the moment, it can only affect individual grobs'
> properties, so it's not possible to insert switches like regular
> \override's (only \once) or actual elements like breaks, markups or
> marks etc.

If you use \override Grob.id then all grobs get the id until you revert.
Wouldn't that have the desired effect?  Of course, this takes away the
possibility to use id for any other purpose or in multiple commands.  So
maybe id is not the best idea to use here.

-- 
David Kastrup



reply via email to

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