Skip to content

kevcen/audiovisualiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio Spectrum Visualiser

Demo

Watch the LED matrix demo on YouTube.

Installation

Download the submodules

Run git submodule update --init to download H. Zeller's LED library.

Dependencies

This project uses SDL2 and its TrueType font library for the UI and FFTW3 for the Fourier transformation.

Compile

Navigate inside the src directory and run make to compile the source files.

Usage

Running on a GUI

./main songName.wav

To add your own audio wav files, place them under the assets/audio directory.

Features

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

Running on terminal

Add terminal to the end of the run command like this: ./main songName.wav terminal

Running on a Raspberry Pi and RGB LED matrix

RPIDemo

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)

About

LED audio visualiser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published