C# FFT and IFFT with Array Input
I am planning on making a Unity application that is heavily based around audio, and as such, it is generally a necessity to work with frequencies, as opposed to only using waveform data. Is there a way to convert a waveform array to an FFT array, and perform the inverse with C# code found in Unity? If not, is there an extension or library I can get for this that would work on all platforms, and is there a place where I can learn how to use said library?
Many thanks in advance! ~Para
I've never used it myself, but maybe AudioSource.GetSpectrumData does what you're looking for?
https://docs.unity3d.com/ScriptReference/AudioSource.GetSpectrumData.html
You see, that's part of my problem. GetSpectrumData only does a small fraction of what I want it to do. It takes input from a running audio source/listener, not from an array of floats, and it only performs FFT, not the inverse, as well. I need something that has that functionality. Thanks for your input, regardless!
Answer by JulesPomme · Nov 23, 2016 at 03:46 PM
Hello, don't have what you need, but I'm also interested by a full answer about this...did you make any progress?