So the overdraw is removed, and I tried to incorporate the phase adjustment. I tried different positions for it, I also adjusted pclk to use the same factor as Predator99's formula (319/1070). But the jitter is there, so my sampling grid due to the error accumulation is not fitting the samples perfectly. I am too tired now. Someone else please have a look at the repo.
You can adjust phase with cursor left and right (adjustments are minimal).
I did not incorporate Benedikt's algorithm verbatim right now, because it was harder to debug in its compactness. We can refactor later, but I think the current code isn't that much more ineffective, but more readable and better for debugging...
YouTube and Bonus
80486DX@33 MHz, 16 MiB RAM, Tseng ET4000 1 MiB, SnarkBarker & GUSar Lite, PC MIDI Card+X2+SC55+MT32, OSSC