Hi,
Firstly, I'd just like to say thank you for NAudio, it's a brilliant library.
I'm having difficulty in trying to extract pitches from a single channel wave file. I have taken a look at Autotune.NET and used the piece of code to read the wave file into a buffer
using (WaveFileReader reader = new WaveFileReader(file))
{
IWaveProvider stream32 = new Wave16ToFloatProvider(reader);
byte[] buffer = new byte[4096];
int bytesRead;
do
{
bytesRead = stream32.Read(buffer, 0, buffer.Length);
} while (bytesRead != 0);
However, I am not sure what the next step would be to go ahead and get pitches from it.
Any help or advice would be much appreciated.
Thanks!
|