Search code examples
c++signal-processingfftfrequency-analysis

Implementing Real Time frequency spectrum for a beginner


I want to develop an application that would take audio(.wav) as input and display its real time simultaneous frequency spectrum . From what i have looked upon the subject , this requires fourier transform of the waves . Can someone suggest where i should start with ? Possible references and books . I want to learn the details of the implementations of realtime frequency spetrum rather than the development of GUI which i am quite familiar with(in C# and in C++).


Solution

  • There are already many libraries to do FFTs for you. No reason to reinvent the wheel. DirectX has an implementation but it might only be in the most recent version. Here's an open source C library for it.

    If you want to understand the math behind it, here's a simple explanation and here's a complicated explanation.