Dear Kieren and Werner,
> > {
> > \after 2. \!
> > c'1
> > \tweak Hairpin.color #red %% comment/uncomment this line
> > \<
> > }
>
> This should be
>
> {
> \after 2. \!
> c’1
> -\tweak Hairpin.color #red \<
> }
>
> Notice the - before \tweak. =)
>
>
> The following also works:
>
> ```
> {
> \after 2. \!
> {
> c’1
> \tweak Hairpin.color #red
> \<
> }
> }
> ```
>
> Either the `-` before `\tweak` or the braces ensure that `\after` gets
> a correct third argument.
>
Thank you both so much for the pointers. I did realize, upon reading this, that
there was a small mention of this toward the end of this page:
https://lilypond.org/doc/v2.24/Documentation/notation/the-tweak-command
…but I admit I wasn’t attentive enough to notice the subtlety. Thank you again
for pointing out.
Rather regrettably, though, even when I fixed \tweak to -\tweak, or to put
relevant lines within a pair of brackets in my flared-hairpin code, the hairpin
didn’t show up. I now think that it has something to do with another hefty
scheme code that’s referenced via -\tweak commands. I will have to investigate
it once I am finished with my pieces…
Grateful nonetheless for the advice!
Yoshi
-- -- --
Yoshiaki Onishi
https://github.com/yoshiakionishi/lilypond-snippets