On Fri, Nov 12, 2010 at 10:40:33AM +0100, Jens M
Andreasen wrote:
float l = sqrtf(1.0f - p)
float r = sqrtf(p)
Constant power, but the mapping from angles to L/R ratios is
not very good (the regions near full L or R are compressed).
A simple second degree approximation works better. Try this
in gnuplot:
plot [0:1] sqrt(x), sin(x * pi / 2), x * (2.2 - x) / 1.2
Ciao,
Just a question of somebody who is inexperienced:
Is the sqrt(x) for the ratio? E.g. like the ratio for lens opening is
1.41?
Cheers!
Ralf