I am trying to implement a Chebyshev waveshaper according to the description on the bottom post here:
Add odd/even harmonics to signal?
It looks similar to the algorithm here: http://www.juce.com/forum/topic/voice-changer-plugin
The results for any odd order setting sound good. But all even order results just end up in massive distortion. I also tried x * abs(x) instead of x², but the result is similar. How should I handle the even order terms? Or do I have to use a completely different method for producing even harmonics?
pow()function work right when the first argument is 0 or less? usually i think thatpow(x,n)=exp(n*log(x)), but ifnis an integer, i s'pose they could implementpow(x,n)withxtimes itselfntimes. anyway, i would say that implementing Tchebyshev polynomials usingpow()is pedantic. might not be such a good idea. – robert bristow-johnson May 22 '15 at 15:12pow(-1.0,0.5)would look like? – robert bristow-johnson May 23 '15 at 04:35To get rid of the DC signal I should omit the - 1 and divide by 2 instead.
– user2561735 May 24 '15 at 00:02