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.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to