Kieren MacMillan <kieren_macmillan <at> sympatico.ca> writes:

> 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


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

Reply via email to