David N G McCallum hat gesagt: // David N G McCallum wrote:
Speaking of waveshaping, does anyone know how I'd go about getting a waveshaping equation into a table for tabread4~?
For example, say I want to use the equation:
f(x,a) = x*(abs(x) + a)/(x^2 + (a-1)*abs(x) + 1)
that I got off musicdsp.org. Where a is a variable and x is the input sample value.
I wouldn't write this into a table but instead use the expr~ family. Unless more 'GEN' functions besides "sinesums" get implemented widely, expr~ is a better way for this kind of waveshaping. I tested some waveshaping methods in my dirty waveshaper patch available at http://footils.radio-worldwi.de (soon footils.org, btw.)
Your example is attached.
Frank Barknecht _ _______footils__