This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# by djazz, using various bits of code found over the web | |
# works with both python2 and python3 | |
# requires: python-alsaaudio, python-numpy, python-smbus, piglow | |
# install piglow: curl get.pimoroni.com/piglow | bash | |
# usage: | |
# this script accepts raw audio in this format: S16LE 44100 kHz Mono | |
# script-that-outputs-audio | python piglow_fft.py |