break-glass-with-resonant-frequency icon indicating copy to clipboard operation
break-glass-with-resonant-frequency copied to clipboard

Breaking A Wine Glass By Detecting Resonant Frequency in Python

Break Glass with Resonant Frequency

Breaking A Wine Glass By Detecting Resonant Frequency in Python

Accompanies a blog post at Make Art with Python

Breaking

Running this Program

You'll need to have Music21, PyAudio, NumPy, Pygame, and Python 3 installed. All of these are easily installable with pip.

Once that's setup, you'll run the program, strike your wine glass, and then press spacebar to begin playing back the detected frequency. If your speakers are loud enough, your wine glass should break!