Re: How to color dynamics

2022-12-24 Thread Paul McKay
Awesome, thanks!

On Fri, 23 Dec 2022, 20:06 Jean Abou Samra,  wrote:

>
>
> Le 23 déc. 2022 à 20:56, Paul McKay  a écrit :
>
> 
> Hi
> I'm making a setting of some music with repeated melodies. The dynamics on
> the second repeat are slightly different in that some appear to have been
> omitted from the first time. I'd like to use the same code, but to show the
> "possibly omitted" dynamic marks in a different color. I have tried the
> following: the color of the dynamic marks is not altered. What do I need to
> do?
>
>
>
> You need to use the right grob. DynamicText is for \p, \f and the like,
> DynamicTextSpanner is for \cresc and \decresc, while DynamicLineSpanner is
> an invisible grob that aligns consecutive dynamics vertically. The grob
> printed by \< is a Hairpin. You can also use \tweak if you put it at the
> right place:
>
> 2\tweak color red\<
>
>
> For what it’s worth, one noteworthy change in version 2.24 is that the
> Internals Reference now has a description of each grob. For example, you
> can learn here what a DynamicLineSpanner is:
> https://lilypond.org/doc/v2.24/Documentation/internals/dynamiclinespanner
>
> Regards,
> Jean
>
>


Re: Which timesteps are created?

2022-12-24 Thread Lukas-Fabian Moser

Am 09.11.22 um 22:07 schrieb Jean Abou Samra:

Le 09/11/2022 à 19:22, Lukas-Fabian Moser a écrit :
Anyway: Thanks to both of you (Jean and David); I'm a bit swamped at 
the moment and have to postpone further work on this, but will 
definitely follow the directions you gave me.

I'm not sure what you mean by "working" on this (writing .ly code
for yourself, or writing a patch for LilyPond?), but
Global_context::add_moment_to_process strikes me as a function
for which a Scheme interface could make sense.

I'm not sure if this would require a regtest, but instead of writing
one, you could port, say, Measure_grouping_engraver (which is rather
simple) to Scheme.


For the record: https://gitlab.com/lilypond/lilypond/-/merge_requests/1778

Lukas