lilypond-user
[Top][All Lists]
Advanced

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

Re: Colored hairpins?


From: Trevor Daniels
Subject: Re: Colored hairpins?
Date: Wed, 9 Apr 2008 10:44:21 +0100


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





reply via email to

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