You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BPM detection loosely follows the model established by Joe Sullivan and José M. Pérez, but the results typically seem to be higher than what's expected for songs with known BPMs.
Solutions could include:
Ensuring the volume calculation (and corresponding normalization process) is in order
Adjusting the parameters used for beat detection, including:
The minimum and maximum frequency range
The absolute and relative intensity thresholds
The maximum number of expected peaks (down to 180-200 or so)
The number of sample frames advanced after a peak has been detected (currently 1/16 of a second and not parameterized)
Changing the statistical methods used in getBpmFromPeaks
In getBpmFromPeaks I have tried using a "weighted average" approach for tempo detection, in which intervalHistogram is incremented by the average intensity of the peak, instead of just 1-per-peak, but that did not seem to help much. Using the median tempo seemed to get closer to an accurate result, but it was still high.
One complication is that if frequency ranges/thresholds change, it will impact the visuals. However, this could potentially be alleviated by keeping the generation of TrackAnalysis.beat collections untouched and using a separate dedicated peak analysis for BPM detection.
The text was updated successfully, but these errors were encountered:
The BPM detection loosely follows the model established by Joe Sullivan and José M. Pérez, but the results typically seem to be higher than what's expected for songs with known BPMs.
Solutions could include:
getBpmFromPeaks
In
getBpmFromPeaks
I have tried using a "weighted average" approach for tempo detection, in whichintervalHistogram
is incremented by the average intensity of the peak, instead of just 1-per-peak, but that did not seem to help much. Using the median tempo seemed to get closer to an accurate result, but it was still high.One complication is that if frequency ranges/thresholds change, it will impact the visuals. However, this could potentially be alleviated by keeping the generation of
TrackAnalysis.beat
collections untouched and using a separate dedicated peak analysis for BPM detection.The text was updated successfully, but these errors were encountered: