- Home /
GetSpectrumData - what does it fill the samples argument with exactly?
Lets say I call getSpectrumData with a float array of size 1024. According to this question, the length of samples[] is the frequency resolution. So, how do I specify over what period of time/number of samples I want the FFT to be done on? Let's say I call getSpectrumData in Update() and want to get the FFT for the audio that played since the last update (for real-time pitch detection but that's a detail) - how would I specify that I want the FFT to be applied on the last X samples?
Your answer
Follow this Question
Related Questions
Multiple AudioSources overwriting a looping AudioSource 1 Answer
Resources.load returns null instead of AudioClip 1 Answer
AudioClip stuttering while loop is OFF and not using function Update? 1 Answer
Browsers prevent WebGL Audio to start at Awake. How to get notification of actual Audio start? 0 Answers
2 audio or more at the same time 0 Answers