[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: accidental scoping
From: |
Mats Bengtsson |
Subject: |
Re: accidental scoping |
Date: |
Mon, 30 Oct 2000 07:31:53 +0100 |
> Han-Wen> Have you tried forgetAccidentals = ##t?
>
> It works if I put it after the fis, like this:
>
> fis''8
> g''8 a''8
> \property Staff.forgetAccidentals = ##t
> f''8
> \property Staff.forgetAccidentals = ##f
>
>
> If I just put it in at the top, it forgets the F# that I want, as well
> as the F \natural that I don't.
This is probably fixed in .100, but if you want to stay with
a somewhat older version, here's a patch to fix the bug.
--------------------------------------
diff -u lily/local-key-engraver.cc~ lily/local-key-engraver.cc
--- lily/local-key-engraver.cc~ Fri Oct 13 18:02:49 2000
+++ lily/local-key-engraver.cc Mon Oct 30 07:25:51 2000
@@ -103,9 +103,7 @@
bool different = prev_acc != a;
bool tie_changes = tied_l_arr_.find_l (support_l) &&
different;
- if (!forget
- && (note_l->forceacc_b_ || different)
- && !tie_changes)
+ if ((note_l->forceacc_b_ || different) && !tie_changes)
{
if (!key_item_p_)
{
-----------------------------------
/Mats