- Home /
How to get GetSpectrumData of an audioClip before playing it?
Is there a way to get fourier data of an audio clip before playing it using AudioSource.GetSpectrumData?
Edit: If not then how would one try to accomplish such task?
Answer by taxvi · Dec 01, 2014 at 07:41 AM
I had the similar challenge and ended up with 2 audio sources. The first one would start playing in the beginning of the scene but with volume=0, I would take the FFT from it and process as necessary. The second audio (with the same audioClip attached) with volume=1 would start playing after 3-5 seconds.
Answer by drudiverse · Dec 01, 2014 at 07:28 AM
You want the Fourier Data?
GetSpectrumData, is a FFT spectrum analysis of the sound.
you can't get an FFT analysis without doing an FFT analysis!
When you run that function it just gives you an array of amplitudes of frequencies, have to see some examples but thats what it should do.
can you just give the code for this,ins$$anonymous$$d of explanation
Your answer
Follow this Question
Related Questions
Get microphone FFT input without playback 2 Answers
GetOutputData and GetSpectrumData, what represent the values returned? 2 Answers
Using GetSpectrumData 1 Answer
Trying to make an audio visualizer, not sure how to distinguish frequencies with GetSpectrumData 0 Answers
get spectrum data returns low values 1 Answer