in reply to Clap-o-meter for Charity
A few points.
- Capture the applause with the microphone input of the sound card.
- Place the microphone far from the audience. Sound intensity follows an inverse-square law. If the mike is close to one candidate's family, she'll win.
- Use PDL and PDL::Audio to analyze the audio. You probably want either the peak power or the integral of the power spectrum.