lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [feature-request] optional duration for temporary


From: Jan-Peter Voigt
Subject: Re: [feature-request] optional duration for temporary
Date: Wed, 11 Nov 2015 16:06:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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: address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]