- Home /
How to determine the pitch from GetSpectrumData() to make a polyphonic tuner?
Hi,
I'm currently stucked with no clues on how to get accurate analysis of the getSpectrumData. I'm trying to make a pitch detection or polyphonic tuner for guitars. My existing idea is to pinpoint the exact position of every pitch on the guitar frets through the samples:float[] data. Does anyone know an effective way to collect those data or any other workaround to make a pitch detector? Thanks in advance.
I've found some resource http://answers.unity3d.com/questions/127562/pitch-in-unity.html http://www.kaappine.fi/tutorials/fundamental-frequencies-and-detecting-notes/ http://answers.unity3d.com/questions/175173/audio-analysis-pass-filter.html http://answers.unity3d.com/questions/720179/getspectrumdata-cant-recognize-correct-note.html
$$anonymous$$ost of it is from Aldonaletto. However, I keep on getting frequencies that are higher than usual. For instance, C3 should be 130.8 or 131, but I got something that is close to C-middle, which is 262, but the result was 266.
I'm running on FFT with 1024 samples, blackmanharris, sample rate 44100 hz. I also tried running with 2048 samples, but it causes lower sensitivity. I also found out that there's not much difference running sample rate of 48000 hz. Can someone please help out here?
Answer by Wajdi-azar · Jul 28, 2016 at 02:00 PM
I'v been searching and trying for weeks and the results are same as yours not even close, please if u find something can u share it.
Your answer
Follow this Question
Related Questions
Slowly fade audio's pitch on key press? 3 Answers
Change Pitch on Collision 1 Answer
GetSpectrumData or equivalent in non-realtime mode? 2 Answers
car shifting smoothed. help! 0 Answers
Rigidbody crate collide sound. 0 Answers