Skip to content

Music visualizer using SDL2 for audio play and FFTW for Fourier Transformation

Notifications You must be signed in to change notification settings

jj136975/Music-Visualizer-Reboot

 
 

Repository files navigation

Music-Visualizer-Reboot

  • 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

alt tag

Video Demonstration: https://www.youtube.com/watch?v=YaeXZrTrX-Y&t=790s

Motivation

  • 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

Software

How To Build and Run

From terminal:

git clone https://github.com/Crelloc/Music-Visualizer-Reboot.git && cd Music-Visualizer-Reboot && make

Synopsis:

./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.

Brief overview about how the program works

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

About

Music visualizer using SDL2 for audio play and FFTW for Fourier Transformation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.3%
  • CMake 10.6%
  • Makefile 4.1%