fix issue with note accidentals and key signature (make comparison case-insensitive).