I have a .wav file which recorded by me when I was playing guitar notes. Then I used below program to read my .wav file data. I used Naudio library.
AudioFileReader readertest = new AudioFileReader(@"E:\song\music.wav");
int bytesnumber = (int)readertest.Length;
var buffer = new float[bytesnumber];
readertest.Read(buffer, 0, bytesnumber);
for (int i = 0; i < buffer.Length; i++)
{
Console.Write(buffer[i] + "\n");
}
it outputs like below.(part of output).
0.00567627
0.007659912
0.005187988
0.005706787
0.005218506
0.003051758
0.004669189
0.0007324219
0.004180908
-0.001586914
0.00402832
-0.003479004
0.003143311
-0.004577637
0.001037598
-0.005432129
-0.001800537
-0.005157471
I'm confused about what this output data contains. I want to take peak frequencies where the notes are played. How can I convert the above data to frequencies?