Where to begin? - Multi source polyphonic pitch detection
It's a research topic. So try the music-ir.org MIREX web site for a vast number of academic papers and transcription competition entries. 

If you want to try a newer direction, try gathering many 100's of hours of snippets of tagged music, fuzz it, and feeding that as training data to a DNN that includes convolutional+LSTM layers.