Hacker News new | past | comments | ask | show | jobs | submit login
Polyphonic Audio Key Finding Using the Spiral Array CEG Algorithm (2005) (ieee.org)
20 points by iou on May 24, 2023 | hide | past | favorite | 6 comments



I did this recently for piano for a piece of software that I'm working on off-and-on and here is my method:

- first convert to midi from audio (either using google's AI tool or my own)

- tally all of the notes in bins

- pick the key that would lead to the most economic visual representation (least number of sharps and flats)

This simple method seems to work remarkably well for the limited case of piano music. For more complex music it would probably not work because the first step would be very difficult.


I'm guessing you mean convert to midi from audio?


Yes, apologies, editing on a small laptop I messed up the comment. fixed.


with this method you get the same score for A-minor and C-major, right? Do you have a strategy to choose between those?


Probably, discard one variant.


Neat idea.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: