2925b68c1cd97b10d0b89cc6fb593d7e84ff36b5,librosa/beat.py,,estimate_tempo,#Any#Any#Any#Any#Any#Any#Any#Any#,184

Before Change


    x_corr = core.autocorrelate(onset_envelope[mincol:maxcol], ac_window)

    // re-weight the autocorrelation by log-normal prior
    bpms = 60.0 * fft_res / (np.arange(1, ac_window+1))

    // Smooth the autocorrelation by a log-normal distribution
    x_corr = x_corr * np.exp(-0.5 * ((np.log2(bpms / start_bpm)) / std_bpm)**2)

    // Get the local maximum of weighted correlation
    x_peaks = util.localmax(x_corr)

After Change


    bpms = core.tempo_frequencies(ac_window, hop_length=hop_length, sr=sr)[1:]

    // Weight the autocorrelation by a log-normal distribution centered start_bpm
    x_corr *= np.exp(-0.5 * ((np.log2(bpms) - np.log2(start_bpm)) / std_bpm)**2)

    // Get the local maximum of weighted correlation
    x_peaks = util.localmax(x_corr)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: librosa/librosa
Commit Name: 2925b68c1cd97b10d0b89cc6fb593d7e84ff36b5
Time: 2016-05-12
Author: brian.mcfee@nyu.edu
File Name: librosa/beat.py
Class Name:
Method Name: estimate_tempo


Project Name: librosa/librosa
Commit Name: 48a579ae1638f5c60e62d8f5c3bad35e0dcef249
Time: 2013-03-23
Author: brm2132@columbia.edu
File Name: librosa/beat.py
Class Name:
Method Name: onset_estimate_bpm


Project Name: dit/dit
Commit Name: c5d2c23110586075a1ad6721dd9a74064111b595
Time: 2015-03-18
Author: chebee7i@gmail.com
File Name: dit/math/aitchison.py
Class Name:
Method Name: inner