Real-time detection of beats for audio from an input device (typically "Stereo Mix"). Outputs OSC signals, which can be used for sound-to-light control.
It keeps track of the music "intensity" (calm, normal, intense) to switch lighting programs.
I use QLC+ for DMX control.
- PyAudio
- PyQt5
- PyQwt
- matplotlib
- scipy
- python-osc
python beatDetector.py
Automatically listens to default audio input device.
OSC signals are sent to localhost:7701
, can be changed in beatDetector.py
.
/beat
is sent for every beat detected./bar
is sent every to change the lighting scene./prog1
-/prog8
is sent to change lighting programs (available have to be configured inbeatDetector.py
)
Based on shunfu/python-beat-detector.
- Beat detection
- Automatic beat generation based on BPM
- Pause and new song detection
- Improved max volume calibration
- Improved pause detection
- Intensity detection
- Automatic lighting program switch