Tim Reeves wrote
Well, it helps some, but why do I get an error when I try the same thing with hairpins?

error: syntax error, unexpected EVENT_IDENTIFIER

r4 d4 \p d d | \repeat "unfold" 4 {d1~} | d1 \once \override Hairpin #'color = #blue \cr | d1 | d1 \f

The error is due to the \cr not being attached to a note, not the override.

It sometimes helps to attach dynamics to a zero-length spacer note - s1*0.

and where can I put the variable redDyn in my .ly file? Everywhere I try seems to give me errors, which is why I just put the \override right in with the music.

Here's your example adjusted to work:

blueDyn = \once \override Hairpin #'color = #blue
\relative c'' {
 r4 d4 \p d d |
\blueDyn s1*0 \cr
 \repeat "unfold" 4 {d1~} | d1  | d1 | d1 \f
}

Finally, when does one have to include the context, like \once \override Voice.DynamicText #'color = #blue?

For this, read the Learning Manual ... :)

Thanks for your help.

Tim Reeves



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to