What would you like to do is take your sound samples, convert them to the frequency domain using Fast Fourier Transform (FFT), find the most powerful frequency in the sample and convert that frequency to a note.
FFT Python , . . http://80.68.92.234/sigproc.html , .