Skip to content

Files

Latest commit

Taha Dhiaeddine AmdouniTaha Dhiaeddine Amdouni
Taha Dhiaeddine Amdouni
and
Taha Dhiaeddine Amdouni
Aug 27, 2017
4cd010f · Aug 27, 2017

History

History

unicorn-fft

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 27, 2017
Aug 27, 2017
Aug 27, 2017
Aug 27, 2017
Aug 27, 2017
Aug 27, 2017

Unicorn Hat FFT audio visualizer

If you're looking for something to use with PiGlow, check this out! It's all Python!

Demo!

Click to watch demo on YouTube

YouTube video demo

Install and build

# Install dependencies
sudo apt-get update && sudo apt-get install libfftw3-dev

# Important to clone recursive to get unicorn-hat lib!
git clone --recursive https://github.com/daniel-j/unicorn-fft.git

cd unicorn-fft

# Compile unicorn-fft and unicorn-hat lib. Use just 'make' to build only unicorn-fft
make all

You can then try the examples examples/arecord.sh and examples/radio.sh

unicorn-fft expects a raw/PCM stream in the format Signed 16 bit Little Endian, Rate 44100 Hz, Mono

Thanks

This project uses code from raspberry-vu which is a fork of Impulse, which I base my FFTW function calls on.

Also special thanks to Damien for his guide FFT Averages, which makes it all prettier!