For the given input audio file (.wav) the program will give the real time audio spectrum by performing Fast Fourier Transform (FFT) on the audio samples and plot the graph using OpenGL. This Project is implemented in C++ using OpenGL. Three frameworks Aquila-dsp, Kiss-Fft, and SFML are used to perform audio sampling, fast fourier transform and audio playback respectively. The development and testing of this project is done on Linux (ubuntu) using 4.2.0-16-generic Kernel. Interface for the program is given with the help of keyboard.
Frameworks / APIs used
- The following c++ frameworks are used in this project. 2 Simple and Fast Multimedia Library (SFML)
The development of the project was done with these requirements. The can support lower versions also. It has not been tested.
- C++ compiler : g++ with c++11 support (-std=gnu++11) (version >= 5.2.1)
- OpenGL (version >=v4.5)
- Aquila-dsp framework (version >=v3.0)
- Kiss-fft Framework (version >=v1.3.0)
- SFML framework >=2.3.2
- Git >=v2.5.0
Compiling the frameworks
CMake: Aquila relies on CMake as a build tool, so make sure you have it installed (version 2.8 or later) Clone repository.
git clone git://github.com/zsiciarz/aquila.git aquila-src
Where to build:
a-top-level-directory/ aquila-build/ aquila-src/
In directory you have to build do
cmake ..\aquila-src -DCMAKE_INSTALL_PREFIX=”~/home/mylib” make make install
Installing SFML is simple. You need administrative privilege on the machine
sudo apt-get install libsfml-dev
There is no need to build kiss-fft. You need to add their files while compiling
Compiling and running
For easy compilation use the script
./compile from the project directory