Only a newbie, but I know the frequency of the knock 'sound' is related to bore size, and computer input is electronically filtered to listen to that particular frequency for knock detection.
I'll leave it up to you to determine if that's of relevance here.