eyal
eyal

Reputation: 2409

how to detect the pitch of recorded sound sample

I'd like to analyze a piece of a recorded sound sample and find it's properties like pitch and so. I have tried to analyze the recorded bytes of the buffer with no success. How it can be done?

Upvotes: 2

Views: 944

Answers (2)

throws_exceptions_at_you
throws_exceptions_at_you

Reputation: 1746

You will have to look into FFM.

Then do something like this pseudocode indicates :

Complex in[1024];
Complex out[1024];
Copy your signal into in
FFT(in, out)
for every member of out compute sqrt(a^2+b^2)
To find frequency with highest power scan for the maximum value in the first 512 points in out

Check also out the original post of the buddy here because it is probably a duplicate.

Upvotes: 2

Dan Graham
Dan Graham

Reputation: 64

Use fast Fourier transform.. Libraries available for most languages. Bytes are no good, can be mp3 encoded or wav/pcm.. You need to decide then analyze.

DG

Upvotes: 2

Related Questions