[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Center and deviation from lo and hi



Hey

I am controlling 2 variables, the center pitch and the deviation, through 2 knobs. I am visualizing what this in a range slider through the following formula:

lo = center - (center * deviation); 
hi = center + ((1 - center) * deviation); 

This means I visualize center and dev as a sort of rrand(lo,hi).

Now, I would also like to control these variables through the slider,  but I cannot seem to find the formula that gives me the center and the deviation knowing upper and lower limits. Any clues?

Thanks 
Uri