in reply to Clap-o-meter for Charity

A few points.

  1. Capture the applause with the microphone input of the sound card.
  2. 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.
  3. Use PDL and PDL::Audio to analyze the audio. You probably want either the peak power or the integral of the power spectrum.

After Compline,
Zaxo