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: Keith OHara
Subject: Re: cautionary accidentals based on cautionary in another staff?
Date: Sat, 16 Mar 2013 03:14:44 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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




reply via email to

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