Hi Tina,

I held off answering this question, hoping Someone™ might offer an 
“Edition-Engraver Lite” and/or a really good replacement for \alignTo… and lo 
and behold you answered the call!  :)

> But see appended an approach using an engraver. This file registers a new 
> context property called `position-events` that is an alist mapping bar 
> numbers 
> to alists of measure positions (as moment or as fractions) to lists of stream 
> events (or alternatively just one stream event or even only mapping bar 
> number 
> to one or multiple events, which would be interpreted as bar position 0).
> 
> So possible values for it are mappings
> 
> bar-number -> barPosition -> (event1 event2 ...)
> bar-number -> barPosition -> event
> bar-number -> (event1 event2 ...)
> bar-number -> event
> 
> Then we add an engraver to (efficiently) look up events for the current 
> measure 
> and position and broadcast them (on the way making sure that all positions 
> specified actually schedule a timestep).
> 
> This way we can then quite simply say: In measure X change tempo, in measure 
> Y, one half note in add a dynamic marking, or something.

Do you know Jan-Peter’s Edition Engraver? If so: How does this compare to that, 
from an “under the hood” technical perspective? One issue with the EE is that 
you can’t attach events at any moment where there isn’t a pre-existing event, 
but your pp at (6 1/2) suggests that your mechanism does not suffer that issue.

I’m very interested in something more lightweight than the full EE being 
available to people in “vanilla Lilypond”, and this looks like a strong 
candidate, especially if we can supply some “sugar” so the UI/UX is as 
user-friendly as Jan-Peter’s.

Thanks, as always, for your great contributions!
Kieren.
__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to