Watch the LED matrix demo on YouTube.
Run git submodule update --init
to download H. Zeller's LED library.
This project uses SDL2 and its TrueType font library for the UI and FFTW3 for the Fourier transformation.
Navigate inside the src
directory and run make
to compile the source files.
./main songName.wav
To add your own audio wav files, place them under the assets/audio directory.
p - play / pause
right arrow key - fast forward
left arrow key - rewind
up / down arrow keys - change colour theme
b - toggle bar smoothing (default: off)
m - calculate bar height by local maximum (default: on)
v - volume dependent wave speed of colours (default: on)
d - changes colours automatically on high volume (default: off)
x - exit
Add terminal
to the end of the run command like this: ./main songName.wav terminal
Wire up your Rasberry Pi with the RGB LED matrix and the power supply with the LED matrix.
You cannot use your on-board sound card so use an external USB sound card and set your Raspberry Pi to use it by default.
Then, simply add pi
to the end of the run command like this: sudo ./main songName.wav pi
(root permissions will be required to make the H. Zeller's library work properly)