Detecting Musical Notes in Python - Updates
Introduction In my last post , I introduced my pitch_detector project, the goal of which is to detect musical notes from recorded audio. In this post, I'll provide a quick update on my (very slow) progress on the project: Using uv Calculating musical notes from frequency Writing tests Please feel free to download and run the program yourself to test it out! ( Link again to code ) Using uv One of the first things I did when returning to this project was initialize the project with uv , which was introduced to me by Todd Valentic . It's really simple to use and makes tracking dependencies, creating virtual environments, and sharing code really easy. Calculating musical notes from frequency I also finally finished the main goal of the program: converting frequencies into musical notes. I'll ignore how I extracted frequencies from recorded audio. Instead, I'll just focus on how I came up with a function that does this: f ( frequency_Hz ) = musical_note, octave 12 equal te...