
Blue line, is exp(-2.0 * PI * x).
Green line is:
t = 1 - x
y = t*t*t*t*t
Plotted over -0.1 to 1.1


Bad link!tony tony chopper wrote:taylor series for Exp (most likely it'll be more accurate):
http://www.mathreference.com/ca,tfn.html
of course the taylor series aren't practically written as in the formula, they're just multiplies & adds as well.The original given was 3 multiplies and an add and mine is 4 multiplies and 2 adds.
Yeah, I know. I'm confident that mine is better.tony tony chopper wrote:of course the taylor series aren't practically written as in the formula, they're just multiplies & adds as well.The original given was 3 multiplies and an add and mine is 4 multiplies and 2 adds.
And you shouldn't count in just multiplies and adds. What also matters is how you can pair them - you can have more multiplies & adds eating less CPU.
Yeah, the performance primitives. I've been wanting to try that! Thanks!tony tony chopper wrote:in all cases I'd suggest using existing libraries like Intel's IPP for this, especially if you need to process blocks
ok, first, why not (sr * 0.5) instead of multiply by 2.0?Leslie Sanford wrote: ...
x = f / (sr / 2)
y = 1 - x * C
y = y * y * y
y = y * A + B
Where f is the frequency and sr is the sample rate. Since the sample rate rarely changes, we can store (sr / 2) somewhere and reuse it. The result of halfing the sample rate in the formula is that makes x is in the range of [0, 1]. This saves us from having to multiply x by 2.
...
Submit: News, Plugins, Hosts & Apps | Advertise @ KVR | Developer Account | About KVR / Contact Us | Privacy Statement
© KVR Audio, Inc. 2000-2026