I'm not sure if this is entirely possible or not, but instead of an electronic solution what about a mechanical one? What I mean is perhaps a variable pitch screw of some sort. Might be an easier solution, or might not
Just thinking out loud. Anyone have thoughts?