Skip to content

Real-time detection of beats from audio, sending out OSC signals for sound-to-light control 🎵💡

Notifications You must be signed in to change notification settings

Nicooow/sound-to-light-osc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sound-to-light-osc

Real-time detection of beats with Python from an audio input device (typically "Stereo Mix"). Outputs OSC signals, to 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.

Video

Required modules

  • PyAudio
  • PyQt5
  • PyQwt
  • matplotlib
  • scipy
  • python-osc

Usage

python beatDetector.py

Automatically listens to default audio input device.

OSC Signals

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 in beatDetector.py)

Acknowledgments

Based on shunfu/python-beat-detector.

Version History

1.0

  • Beat detection
  • Automatic beat generation based on BPM
  • Pause and new song detection

1.1

  • Improved max volume calibration
  • Improved pause detection
  • Intensity detection
  • Automatic lighting program switch

Support Me

I love to hear from people using my work, it's giving me the motivation to keep working on it.

If you want to let me know you're finding it useful, please consider giving it a star ⭐ on GitHub.

If you love my work and want to say thank you, you can help me out for a beer 🍻️ via PayPal.

About

Real-time detection of beats from audio, sending out OSC signals for sound-to-light control 🎵💡

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%