initial version, detects rms of sound