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

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



Hi Uri

From solving your formulae as simultaneous equations it looks like
deviation = lo - hi;
center = lo/(1 - lo + hi);

hth
Nathaniel


2009/7/23 Uri Sala <urisala@xxxxxxxxx>
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