lilypond-user
[Top][All Lists]
Advanced

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

Re: cautionary accidentals based on cautionary in another staff?


From: Kieren MacMillan
Subject: Re: cautionary accidentals based on cautionary in another staff?
Date: Sat, 16 Mar 2013 12:24:28 -0400

Hi Keith,

>> Has anyone solved this problem, i.e., including cautionary accidental(s)
>> in one staff if one was required in the same measure of another staff in the
>> same score?
> 
> Exactly this rule probably won't work for you, but I set a rule to set 
> cautionary
> accidentals when any instrument has played a conflicting accidental within the
> current measure.
> 
> %% On the score, as opposed to parts,
>   % Initialize the (badly-named) variable that tracks recent accidentals
>   \set Score.localKeySignature = #'()
>   \set Score.autoCautionaries   % 0 -> current measure only
>       = #`(Score ,(make-accidental-rule 'any-octave 0))
> 
> %% I don't need, but you might
>   %\unset Staff.autoCautionaries  % in any Staff that has a cautionary rule

Wow! Thanks for this — it does amazing things.
(I am constantly in awe of Lilypond's hidden capabilities…)

Ultimately, I'll need to tweak it a bit — right now, there are TOO MANY 
cautionaries, but I think I prefer that to none! — but this is a great start.

Gratefully,
Kieren.


reply via email to

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