Hi Kieren, et.al.,

David came up with a nice solution :)
To get such a function with the edition-engraver, we will have to integrate some other piece. The proposed solution works horizontal in time, while the edition-engraver is triggered "vertically" in time. So there has to be an event, which triggers the revert/undo.
This might be entered with an offset in time - a duration/moment.

Hm, one task on my TODO-list ...

Again I can only say, I am able hope to work on it soon!

For now,
cheers,
Jan-Peter

Am 11.11.2015 um 15:52 schrieb Kieren MacMillan:
Hi David,

As always, a wonderful solution. Thank you!

%%%  SNIPPET BEGINS
\version "2.19.30"

ranged =
#(define-music-function (overrides music) (ly:music? ly:music?)
   #{ \temporary $overrides #music \undo $overrides #})

{
   c d e f
   \ranged \override NoteHead.color = #red { c d e f }
   c d e f
}
%%%  SNIPPET ENDS

Now [Jan-Peter? Urs? David?]…
Can this be modified/reimagined so that it can be applied via the 
edition-engraver?

Thanks,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info



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

Reply via email to