> We are talking music, so we care about the frequencies more than about the immediate sample value.
The frequencies and the sample values are just two different ways at looking at the same data.
> And the window is important because autocorrelating over individual data points is useless, sound signals are noisy and you get a lot of randomness.
I’m not sure what you mean by “individual data points”. The autocorrelation is computed for an entire signal, not for any individual data point. Talking about an individual data point in the input doesn’t make much sense.
Autocorrelation is not especially susceptible to noise.
> Also, I tried the code provided on a few pieces I thought would be appropriate and it didn't do a very good job. I might run a few experiments.
Try doing just a simple autocorrelation instead. This will work for the use cases described (looped samples of music), you will see a large spike in the autocorrelation for the loop point.
For music which repeats but is not looped, you can do some preprocessing e.g. to find envelopes and do autocorrelation on that.
The frequencies and the sample values are just two different ways at looking at the same data.
> And the window is important because autocorrelating over individual data points is useless, sound signals are noisy and you get a lot of randomness.
I’m not sure what you mean by “individual data points”. The autocorrelation is computed for an entire signal, not for any individual data point. Talking about an individual data point in the input doesn’t make much sense.
Autocorrelation is not especially susceptible to noise.
> Also, I tried the code provided on a few pieces I thought would be appropriate and it didn't do a very good job. I might run a few experiments.
Try doing just a simple autocorrelation instead. This will work for the use cases described (looped samples of music), you will see a large spike in the autocorrelation for the loop point.
For music which repeats but is not looped, you can do some preprocessing e.g. to find envelopes and do autocorrelation on that.