On Thu, Nov 11, 2010 at 08:22:08PM -0800, Eric Kampman wrote:
> I looked up "pan law" and understand that center should be
The ideal value depends on frequency, in theory -6 dB of LF
and -3 dB for HF, with a gradual transition at around 500 Hz
or so.
> I played around this for awhile and using the sum of the square of sin and cos etc I got an f(t) of
It is correct.
> Is this equal power version worth spending the processing cycles on?
If you are concerned about the CPU use, consider this:
panning value x = [-1..+1]
L_gain = (1 - x) * (0.7 + 0.2 * x)
R_gain = (1 + x) * (0.7 - 0.2 * x)
which will be -3.1 dB at the center. You can modify this
modyfying the 0.7 and 0.2 constants, for example
L_gain = (1 - x) * (0.65 + 0.15 * x)
R_gain = (1 + x) * (0.65 - 0.15 * x)
will produce -3.75 dB, and
L_gain = (1 - x) * (0.6 + 0.1 * x)
R_gain = (1 + x) * (0.6 - 0.1 * x)
will produce -4.4 dB, etc.
Ciao,
--
FA
There are three of them, and Alleline.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.