I am working with an accelerometer and I need to scale values, for example 0 -10 to 37-120.
Is there some object to do this or I have to go te raw way?
Thanks in advance...
scaling (in this case) is just an offset (addition) and a multiplication.
Thanks lokki. The exact values I get is 25-38 and i want to control all the range of a vcf filter frequency. What range I should go and how?
Thanks in advance
38 -25 = 1364 / 13 (you get the multiplier from that) = 4.92
so a subtraction of 25, to get it zero based and a multiplication by 4.92 should get you a range of 0 to 64. then convert it via unipolar to bipolar to -64 64 range if needed.
Is this the proper way to implement this. If it is it doesnt work for me. Waht am I missing?. Sorry for this silly questions.
All the best and thanks for be patient.