C++ program to count number of peaks in a waveform-esque image and convert into frequency values comparable to sounds.