First, make an array with the FFT coefficients. The length must be a
power of 2. Convert the array into a sound with SND-IFFT. A wavetable is
just a list of the form (sound nominal-pitch-of-the-sound-in-steps t).
Make the wavetable list using LIST. Finally, call OSC, passing in the
wavetable.
Doing this is probably a bad idea. Unless you take special care, the
result is likely to have a discontinuity between the last samples and
the first samples, introducing some high frequencies that aren't
explicitly included in the coefficients. Secondly, the result could
easily alias.
You might be better off looking at BUILD-HARMONIC. By calling this once
per desired harmonic and summing the results, you can create a wavetable
with specific harmonics.
-Roger
Zizoo wrote:
> If I want to make a tone by just performing an IFFT on a single frame and
> looping the result, what would be the simplest way to do that?
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Audacity-nyquist mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-nyquist