Registering notes

Recognising the pitch of a real instrument like a piano is almost impossible to do with 100% accuracy. What exactly are you trying to do that requires this?