On Wed, Dec 01, 2010 at 01:16:07PM +0300, Andrew Gaydenko wrote:

> I need just

If that is what you need it's simple enough to compute...

But it won't give you a_1 second harmonic distortion, a_2 third

etc (although for small values of 'a_i' you could get near).

The Chebyshev way allows you to control each harmonic independently

(provided the input is a sine).

This is because for the n-th Chebyshev polynomial T_n ()

T_n (cos (x)) = cos (n * x)

The polynomials are very easy to compute using recursion:

T_0(x) = 1

T_1(x) = x

T_N(x) = 2 * x * T_{N-1}(x) - T_{N-2}(x)

etc.

This is simple enough to do directly on the signal, no need

to compute the explicit polynomials.

> Will I get HF hum? Please, direct my nose to an approriate reading! :-)

You will get aliasing if you try to generate anything above Fs/2.

Ciao,

--

FA

There are three of them, and Alleline.

_______________________________________________

Linux-audio-dev mailing list

Linux-audio-dev@lists.linuxaudio.org

http://lists.linuxaudio.org/listinfo/linux-audio-dev

Re: [LAD] Harmonic generator and transfer function, , (Wed Dec 1, 12:00 pm)

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.