Hi again,

consider the case
gis2 gis ~ | gis gis4 gis |

in many occurences of printed music, I see a sharp sign
on the first and the fourth gis, i.e., the note tied to
the left "remembers" the accidental from the previous bar,
but the first note thereafter sets it anew for the current bar.

I think this would be a desireful behaviour, and have changed
local-key-engraver.cc accordingly, hoping not to break anything
else...
Please include it, if you deem it the right behaviour.

The patch is again against 1.2.16; I hope it fits into the
new version, too.

Dirk.
--- lily/local-key-engraver.cc.x        Sun Oct 31 18:44:21 1999
+++ lily/local-key-engraver.cc  Sun Oct 31 21:00:32 1999
@@ -64,14 +64,6 @@
          Item * support_l = support_l_arr_[i];
          Note_req * note_l = mel_l_arr_[i];
 
-         if (tied_l_arr_.find_l (support_l) && 
-             !note_l->forceacc_b_)
-           {
-             if (!forget)
-               local_key_.set (note_l->pitch_);
-             continue;
-           }
-           
          if (!note_l->forceacc_b_
              && local_key_.different_acc (note_l->pitch_))
            continue;
@@ -82,12 +74,16 @@
            }
 
 
+         if (!tied_l_arr_.find_l (support_l)
+              || note_l->forceacc_b_ )
+          {
          key_item_p_->add_pitch (note_l->pitch_,
                                  note_l->cautionary_b_);
          key_item_p_->add_support (support_l);
          
          if (!forget)
            local_key_.set (note_l->pitch_);
+          }
        }
     }
   if (key_item_p_ && grace_align_l_)
\include "paper16.ly"

\score { \notes
  \relative cis' {

\time 4/4;
gis'2 gis ~ |
gis gis4 gis |
}

        \paper{\paper_sixteen}

}

Reply via email to