refactor accidental calculation for edge case with doubled notes. note that vex is not correctly rendering doubled notes, although the doubled accidentals are being rendered.