The frequency of a single tone is the inverse of the time from peak to peak (or zero-crossing to zero-crossing, or similar). You could probably hack at that. The analysis of more complex waveforms is not trivial. It is not a subject, unfortunately, that will be learned in a thread. There are a number of tools available. Google will reveal them. Try "wav file analysis" or similar.