lilypond-devel
[Top][All Lists]
Advanced

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

Re: event listener and engraver properties


From: Graham Percival
Subject: Re: event listener and engraver properties
Date: Fri, 3 Jun 2011 20:04:52 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Jun 01, 2011 at 09:47:25PM +0100, Neil Puttock wrote:
> On 1 June 2011 20:31, Graham Percival <address@hidden> wrote:
> 
> > However, I'm confused/concerned about getting the text value of
> > text spanners.  I'm currently doing:
> 
> Hmm, this is one situation where listening to events isn't as user-friendly.
> 
> The event for a text spanner doesn't carry the text info since it's
> applied via an override (a separate event class).  You'd need to
> listen for overrides and check the symbol being set (which is the grob
> the override's applied to):

Hmm.  So if I wanted to write this information to a line, I'd have
to use some stateful variable to store the latest value of the
(Override), then use that info whenever I saw a (text-span-event)
?  That seems like a step backwards for maintability.

Thanks for the solution, though!

Cheers,
- Graham



reply via email to

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