Automatic tempo detection for huge loops libraries ?
-
- KVRist
- 67 posts since 17 Apr, 2004
Hi,
Out of the grave I have found an old library of drum loops, but none has any tempo indication ... would you know of a way to script Audacity to scan directories and rename the files with the BPM appended in the name ?
Or another method ?
Thanks !
Out of the grave I have found an old library of drum loops, but none has any tempo indication ... would you know of a way to script Audacity to scan directories and rename the files with the BPM appended in the name ?
Or another method ?
Thanks !
- KVRAF
- 16823 posts since 8 Mar, 2005 from Utrecht, Holland
Another method? Sort by file size!
If the sampling rate is the same, then size correlates with length in time. With loops: that is tempo.
If the sampling rate is the same, then size correlates with length in time. With loops: that is tempo.
We are the KVR collective. Resistance is futile. You will be assimilated. 
My MusicCalc is served over https!!
My MusicCalc is served over https!!
-
- KVRAF
- 5271 posts since 2 Jul, 2005
Using a combo of autocorrelation and fft analysis you should be able to extract some very good tempo data. Probably python would be the way to script this for batch processing. I'm not sure of any off the shelf products for this. Many audio editing platforms have robust tempo detection built in somewhere.
Don't F**K with Mr. Zero.
-
- KVRist
- Topic Starter
- 67 posts since 17 Apr, 2004
Different sampling formats, different bits formats, different durations ( 1 bar , 1/2 bar ,etc ) ... the perfect condition to give a headache for someone willing to sort files ...BertKoor wrote: Sun Oct 19, 2025 9:38 pm Another method? Sort by file size!
If the sampling rate is the same, then size correlates with length in time. With loops: that is tempo.
-
- KVRist
- Topic Starter
- 67 posts since 17 Apr, 2004
Autocorrelation and FFT ... let mecheck for some Python scripts ...Ah_Dziz wrote: Mon Oct 20, 2025 3:35 pm Using a combo of autocorrelation and fft analysis you should be able to extract some very good tempo data. Probably python would be the way to script this for batch processing. I'm not sure of any off the shelf products for this. Many audio editing platforms have robust tempo detection built in somewhere.
Thanks !
-
- KVRAF
- 5271 posts since 2 Jul, 2005
Yep. The tempo is basically an incredibly low frequency bin with an fft. 4/4 kick patterns being super easy to pick apart. Once you are down to those low tempos, autocorrelation can tell you much more about the tempo.
Don't F**K with Mr. Zero.
