On Wed, Jun 01, 2011 at 09:47:25PM +0100, Neil Puttock wrote:
> On 1 June 2011 20:31, Graham Percival <gra...@percival-music.ca> 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

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to