[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] autochange.scm: Use averaged chord pitches to determine staf
Re: [PATCH] autochange.scm: Use averaged chord pitches to determine staff.
Wed, 29 Jul 2009 21:54:54 -0700 (PDT)
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
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?
Re: [PATCH] autochange.scm: Use averaged chord pitches to determinestaff., Mark Polesky, 2009/07/28