in reply to Clap-o-meter for Charity

I think you'd do better with an integrated value - the magnitude of the signal summed over the duration. Otherwise a single loud clap would register higher than sustained, less noisy applause that went on for many minutes.

Assuming you have some sort of analog to digital conversion available, this should require little more than sampling the value at regular intervals and summing.