Reputation: 69
I am using NAudio library for C#. I have a bye array of floating points from a .wav file. I would like put this through a FFT so I can find if a song has certain frequencies. For example a frequency which of a flute etc. Is there an FFT in NAudio and if so what does it take and output?
Upvotes: 1
Views: 4693
Reputation: 6112
Here's a SO question which explains how to calculate FFT in NAudio.
Personally, I haven't been the biggest fan of NAudio for FFT implementations, I would rather use the following open-source solutions:
AForge.net. View the ComplexImage.cs for usage & FourierTransform.cs for implementation.
Math.NET's Iridium library (licensed under the LGPL so you are free to use it in commercial products).
Chris Lomont's C# Fast Fourier Transform.
MSDN also has a great discussion and a sample FFT implementation.
Upvotes: 1