This is the code used in my article Computational Synesthesia: Audio Analysis with Image Processing Algorithms The good stuff is in detect_features.py. The contents of the blog post ipython notebook are also in this repo.