Skip to content

Harpseal/sysAudioSpectrogram

Repository files navigation

sysAudioSpectrogram

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.

Todo

Indicate music scale. ex.A440 (pending)
Replace highgui with LayeredWindowD2D (in process)
Frequency-dB line chart. (almost done)

Buliding Prerequisites & Dependencies

  • 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)

Results

Comparison with the spectrogram generated by foobar2000

Comparison

Left: sysAudioSpectrogram , Right: foobar2000 v1.1.11

Authors

Harpseal Tsai

Attribution

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.

[1] http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx

About

System audio output spectrogram for windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published