wav analyzer
I am trying to make a program that finds similarities within a wav file. I want to break the wav file into pieces that are about a second long. Then, I want to convert each piece into a number that represents that second's wave. Last, I want to find the seconds that are similar, by finding the closest numbers.
Does anyone know an algorithm I could use to convert a wave into a number, so that similar waves have similar numbers? thanks.
[452 byte] By [
esfsfefesa] at [2007-11-26 20:49:26]

# 1
Rather than converting them to a single number, you want to do a Fourier transform and compare them in the Fourier domain with a convolution. Google (or a search of this forum, if Sun's forum search is working today) should give you Java code for a Fourier transform; Wikipedia should give a decent explanation of what it is; and the convolution of two discrete transforms F1[0..n] and F2[0..n] is the sum over n of F1[r]*F2[r]. The higher the resulting number, the better the match.