Turns out the duty modulation was bugged as fuck

It still is. I'm going to bed. :(