I would like to create a little application that plays back a music file (format doesn’t really matter). The hard part is: at the same time I would like to display the current amplitude of the lower frequencies (bass), the middle frequencies and the high frequencies.
So I would need some kind of simple spectral analysis together with playback functionality. Is there a C# audio library that can do this without too much hassle?
The purpose of this project is to drive an RGB-LED lighting system I’ve recently installed in my room 😉
NAudio : http://naudio.codeplex.com/ (Open source)
Bass and Bass.Net: http://www.un4seen.com/ (Free for non commercial)
Fmod Ex: http://www.fmod.org/index.html (Also free for non commercial use)
Doing what you need using Bass is very easy:
Then to get spectrum:
From there you can easily average bands for specific frequencies