How to get the 10-5 most dominant frequency in an audio signal
There are research papers on the topic of automatic polyphonic chord estimation/transcription on MIREX (http://www.music-ir.org/mirex/wiki/2014:Audio_Chord_Estimation).  Also a book and a thesis by A. Klapuri.