I'm working on a web application that uses an oscillator. It has a parameter that goes from 0 to 100 percent. I translate that percent into hertz using this equation: $$ \text{frequency} = 2^{(\lfloor 128*\text{percent} \rfloor - 69)/12}*440 $$
I am having some trouble solving the equation for percent so that given a frequency, I can get a percent value to send back to my app. Help please? :]