- Terminal-based Music Visualizer that displays the power spectrum of a .wav file
- Music visualizer using SDL2 for audio play and FFTW for Fourier Transformation
Video Demonstration: https://www.youtube.com/watch?v=YaeXZrTrX-Y&t=790s
- Was planning to design and build a LED music visualizer as an Arduino project but wanted a better understanding of how music visualization software actually works.
Video Demonstration for LED music visualizer: https://www.youtube.com/watch?v=___XwMbhV4k
- SDL2: https://wiki.libsdl.org/Installation
- Note: make sure to install sdl2, alsa, and pulseaudio development (or any development files that your systems uses to play sound ) files before installing SDL2.
- FFTW: http://www.fftw.org/download.html
- pkg-config: https://www.freedesktop.org/wiki/Software/pkg-config/
- GDB: for debugging on Linux
- gcc: C compiler for Linux
git clone https://github.com/Crelloc/Music-Visualizer-Reboot.git && cd Music-Visualizer-Reboot && make
./visual.exe [-f] /PATH/TO/WAV/AUDIO/FILE
For example:
./visual.exe -f ~/Music/Classic.wav
Note: Supports only wav audio files and make sure that the "/PATH/TO/WAV/AUDIO/FILE" doesn't have spaces in it.
- Analyzes the digital information in the wav file.
- Computes the fourier transformation every 'N' frames. Eg. computes the fourier transformation (FT) on 'N' L channel data and also computes the FT on 'N' R channel data.
- Gathers frequency and magnitude information from the results of the fourier transformation and records it by storing into an array.
- After analysis is finished the program will play music and display the corresponding information at the terminal.