10-24-2005 05:03 PM
10-25-2005 08:03 AM
Comparing 2 sound waves
One wave is shorter or equal to the other
Question is to find (nearly) equal occurrences of the shorter in the longer.
This is not an uncommon requirement. The trick is to align then and do a subtraction, sum the differences . Move the shorter on one point and do it again. This will give you a vector of differences which you can examine to find the lowest point. Then you see if it’s close enough.
Be careful to have the frequencies of the sound recordings the same, or do some interppolation to make them the same.
With the proposed heuristic you can get positive and negative differences which balance out. Maybe it’s better to square the difference before adding it up.
The system is quite computationally intensive.
I have used this approach for recognizing shapes in fetal heart rate tracings, where there are characteristic shapes of ominous patterns.
10-26-2005 07:56 AM