Skip to content

Class project in NTU course MHCI (Mobile Human Computer Interaction)

Notifications You must be signed in to change notification settings

shinying/dance-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dancing Lights

Supporting Dance Performances for Deaf and Hard of Hearing People through Lighting Effects (document)

File Description

.
├── main.py         main script
├── recorder.py     sound recording by pyaudio
├── tempo.py        beat detection by aubio
└── mhci.ino        script for controlling lighting with Arduino

Environment

python 2.7.15 with pyaudio and aubio Arduino library Adafruit_NeoPixel

Usage

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

Lighting pattern is casually designed in mhci.ino.

About

Class project in NTU course MHCI (Mobile Human Computer Interaction)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published