lilypond-user
[Top][All Lists]
Advanced

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

How to color dynamics


From: Paul McKay
Subject: How to color dynamics
Date: Fri, 23 Dec 2022 19:55:33 +0000

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?
Thanks 
Paul McKay

\version "2.24.0"

nn = \relative { \repeat unfold 16 e'4 }
dyn = { 4 2\<
        \override DynamicLineSpanner.color = #red
        \override DynamicText.color = #red
        \override DynamicTextSpanner.color = #red
        \tweak color #red
        2\< 2\< 4\! }
<< \nn\new Dynamics \dyn >>

reply via email to

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