How to find maximums or peaks of sound