On Thu, 2010-11-11 at 20:22 -0800, Eric Kampman wrote:
I think you misspelled one sin(), no?
let float p be the panning position such that:
Left == 0.0, Center == 0.5, Right == 1.0
.. then:
float l = sqrtf(1.0f - p)
float r = sqrtf(p)
> Thoughts?
For LFO and envelope, I would calculate ay most every 16th value and
interpolate inbetween.
There is support in SSE for sqrt:
http://web.nmsu.edu/~usa/nmcac/apps/intel/vtune/doc/users_guide/mergedPr...
It is a complex mul you really want - where L+R is the real and L-R is
the imaginary. You can have the sin/cos pair very cheaply by using an
LFO that works by rotating iself by some complex constant.
--
jedes mal wenn du eine quintparallele verwendest
tötet bach ein kätzchen.
http://www.youtube.com/watch?v=43RdmmNaGfQ
_______________________________________________
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.