On January 3, 2012 at 12:24, AnthonyZ said...
Hey nerds, I need some math help. I feel like an idiot but, I can't figure this out. I am writing some JavaScript for two way feedback for a Parasound preamp. Volume scale runs from decimal 10 = 0% to 106 = 100% or .96/step. I want to convert to 0-100% scale in the GUI but, I am too stupid to figure out the math. I can write the script (parse hex and ASCII, yes both > convert to decimal > apply formula), I just don't understand what the formula needs to be. Can some one help me out?
Why not start at 106 = 100 and not bother with the difference at the low end? That little bit of "on" volume setting isn't useful, anyway.