lilypond-user
[Top][All Lists]
Advanced

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

Re: Scheme: get current beam-thickness


From: David Kastrup
Subject: Re: Scheme: get current beam-thickness
Date: Sat, 25 Jan 2020 21:05:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Aaron Hill <address@hidden> writes:

> On 2020-01-25 11:40 am, David Kastrup wrote:
>> Aaron Hill <address@hidden> writes:
>>> I am unaware of any simpler approach, as it is my understanding that
>>> grobs do not persist the entire context within which they were
>>> created.
>> How would they then make it to the page?  Suicided grobs have their
>> properties deleted prematurely, but those are not the rule.
>> 
>>> Mind you, I would love to be shown that I am incorrect.
>> This is Scheme anyway.  In general, objects persist as long as you
>> are
>> able to reference them.
>
> Wait, do grobs have a reference to the context?

No, or this would cause the contexts to persist until the end of typesetting.

> I know you can use \applyOutput to process grobs at a given moment in
> time, and that provides you access to both the grobs and the context.  
> And my snippet showed using an engraver to achieve something similar.
> But within, say, a stencil procedure, it seems like you only have the 
> grob to work with.  Is there some ly:grob-context method that I have
> been overlooking?

You wrote "it is my understanding that grobs do not persist the entire
context within which they were created".  "persist" is an intransitive
verb, so your statement was about the duration of grobs, not of
contexts.

-- 
David Kastrup



reply via email to

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