Skip to content

Polyphonic Audio Key Finding Using the Spiral Array CEG Algorithm (2005)

ieeexplore.ieee.org
20 pointsiou6 comments
On HN

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.