Git Product home page Git Product logo

unicorn-fft's Introduction

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!

unicorn-fft's People

Contributors

daniel-j avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unicorn-fft's Issues

Issue with radio.sh example

Hi,

Great code by the way but when I try to run the radio.sh example all I get is lots of beeping instead of music and the unicorn lights up but that's it. Would you have any idea why this could be happening? Also how can I get it to work with just using audio files?

Thanks in advance.

Freezes with RPi Zero W and Unicorn pHAT

I tried this with a RPi Zero W and a Unicorn pHAT (the smaller one). It runs for a split second but then the Pi completely chokes up. It doesn't even let me get in via ssh. any hints?

pi@raspberrypi:~/git/unicorn-fft/examples $ ./radio.sh
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.23.8; written and copyright by Michael Hipp and others
        free software (LGPL) without any warranty but with best wishes

Directory: http://ice1.somafm.com/

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: u80s-128-mp3 ...
ICY-NAME: Underground Eighties: UK Synthpop and a bit of New Wave. [SomaFM]
ICY-URL: http://somafm.com

MPEG 1.0 L III cbr128 44100 stereo

FWIW I'm using this stream for './radio.sh'

http://ice1.somafm.com/u80s-128-mp3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.