- Home /
How to derive pitch from spectrum data?
I'm trying to write a program which derives pitch from a monophonic audio source - a single instrument. I found this method in AudioSource called GetSpectrumData. However, it isn't very clear what spectrum data actually is. Is it audio data after an fft or before?
Also, what data is it actually putting out, is it a representation of a range of frequency amplitudes over the sample range. Or is it simply giving the overall amplitude of each sample?
Has anyone had experience with this? Do you know what spectrum data actually represents and how I might derive pitch from it?
Documentation at: http://docs.unity3d.com/Documentation/ScriptReference/AudioSource.GetSpectrumData.html
Thanks! You guys are great.
Great Question, I'm in the same boat, has anyone help you with this yet??
This thread had the solution in it, I'm not sure if all the links etc. are still active though as its from 3 years ago.
https://forum.unity3d.com/threads/what-is-spectrum-data-audio-getspectrumdata.204060/#post-1379577
I might still have the project somewhere and can share it but I don't hold out a lot hope.
Your answer
Follow this Question
Related Questions
Animate Audio Source Pitch/Speed in Timeline 0 Answers
Creating Audio Source for different pitch 0 Answers
Gear sound changes smoothed! 0 Answers
AudioSource pitch measurement unit 1 Answer