Neil Puttock wrote:
> I suppose you could use a music property, but you wouldn't add it to
> this object's definition.
>
> > I had thought that applyContext was the way to go. But what's a
> > parser variable? Can you give me an example of one?
>
> A good example would be afterGraceFraction, which is basically an
> identifier \afterGrace accesses via parser lookup.  Of course, what I
> said earlier about using such variables is incorrect: you *can* change
> them within music, as long as you use define or set! (the docs for
> \afterGrace use define, but it would make more sense to use set!,
> since afterGraceFraction is already defined in
> music-functions-init.ly).

Wow! That was so much easier than I thought it would be. I'll prepare
a new patch. One question -- would my "parser variable" need to be
defined in music-functions-init.ly or could I just define it scheme-
style in autochange.scm?

Thanks Neil!
- Mark


      


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

Reply via email to