- #1
mikejm
- 40
- 2
I'm working on a guitar amp distortion emulation which is waveshaping based on the following equation:
f(x)= x/|x| * tanh (c * |x|^b)
This looks like this:
So the idea is values of "x" (the raw guitar signal amplitudes) are fed in and get soft then hard limited to an output of y=+/-1. As the x values approach 0, the exponent "b" shapes them to emulate crossover distortion.
I think it's a nice equation for this type of work.
In order to reduce aliasing (see here), I require the use of the equation's integral.
So I am seeking the integral for this equation, but Wolfram Alpha says that no integral exists. Even for a simplified version:
y= tanh (c*x^b)
It says no such integral exists.
Is this correct? Is there anyway to reorganize the equation or work around it to get a working integral?
Thanks,
Mike
f(x)= x/|x| * tanh (c * |x|^b)
This looks like this:
So the idea is values of "x" (the raw guitar signal amplitudes) are fed in and get soft then hard limited to an output of y=+/-1. As the x values approach 0, the exponent "b" shapes them to emulate crossover distortion.
I think it's a nice equation for this type of work.
In order to reduce aliasing (see here), I require the use of the equation's integral.
So I am seeking the integral for this equation, but Wolfram Alpha says that no integral exists. Even for a simplified version:
y= tanh (c*x^b)
It says no such integral exists.
Is this correct? Is there anyway to reorganize the equation or work around it to get a working integral?
Thanks,
Mike