Supporting Dance Performances for Deaf and Hard of Hearing People through Lighting Effects (document)
.
├── main.py main script
├── recorder.py sound recording by pyaudio
├── tempo.py beat detection by aubio
└── mhci.ino script for controlling lighting with Arduino
python 2.7.15 with pyaudio and aubio Arduino library Adafruit_NeoPixel
This program first identifies beats from a given song; then it records sound and matches the current playing location to the original sound file. If matching is successful, it lights LED at beats through Arduino.
So files of music to be matched should be included in the same folder, and add command in line 100 in main.py to target the file. After Arduino board is connected and the music is played, execute the program by
./python main.py
Then type the command you set to match the music, and wait for LED to be lightened. Type stop
to exit the program.
Lighting pattern is casually designed in mhci.ino
.