Resonance algorithm to detect pitches
问题 I have been looking at different methods of detecting the pitch of a tone sung into the microphone. Seeing as I want to find how closely it resonates with a particular pitch class, I wonder if I could do some sort of physics-based resonance algorithm. If you hold down to sustain pedal on the piano, and sing a tone into it, (and if you are close enough to one of its existing pitches) a note will resonate sympathetically. I would love to be able to model this behaviour. But how would I go about