This is a sample windows project which visualizes system WASAPI loopback capture as spectrogram by using kissFFT and FFTW. The motivation of this project is try to figure out the relation between the frequency and the music. If you has the same question, the book "Mathematics and Music" is recommended.
Indicate music scale. ex.A440 (pending)
Replace highgui with LayeredWindowD2D (in process)
Frequency-dB line chart. (almost done)
- Microsoft Visual Studio 2012 Express
- OpenCV
- In this project, I only use the highgui to create UI window and show some FFT results. Highgui will be replace with LayeredWindowD2D(Windows API) in the future.
- KissFFT
- FFTW (Optional)
Comparison with the spectrogram generated by foobar2000
Left: sysAudioSpectrogram , Right: foobar2000 v1.1.11
Harpseal Tsai
Some source code originally from the windows SDK samples, some taken from [1] So you'll probably need to install the Windows SDK before playing around with the source code, legally.