48a579ae1638f5c60e62d8f5c3bad35e0dcef249,librosa/beat.py,,onset_estimate_bpm,#,145

Before Change


    //   this fails if ac_window > length of song   

    bpms                    = 60.0 * fft_resolution / (numpy.arange(1, ac_window+1))
    x_corr_weighting        = numpy.exp(-0.5 * ((numpy.log2(bpms) - numpy.log2(start_bpm)) / bpm_std)**2)

    // Compute the weighted autocorrelation
    x_corr                  = x_corr * x_corr_weighting

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

After Change


    mincol      = max(0,    maxcol - numpy.round(DURATION * fft_res))

    // Use auto-correlation out of 4 seconds (empirically set??)
    ac_window   = numpy.round(AC_SIZE * fft_res)

    // Compute the autocorrelation
    x_corr      = librosa.autocorrelate(onsets[mincol:maxcol], ac_window)


    //   FIXME:  2013-01-25 08:55:40 by Brian McFee <brm2132@columbia.edu>
    //   this fails if ac_window > length of song   
    // re-weight the autocorrelation by log-normal prior
    bpms    = 60.0 * fft_res / (numpy.arange(1, ac_window+1))

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

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

Frequency: 3

Non-data size: 6

Instances


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: librosa/librosa
Commit Name: 1cdfcfa8a884ffb5f670812ee4b528a76f367be9
Time: 2016-05-07
Author: brian.mcfee@nyu.edu
File Name: librosa/core/constantq.py
Class Name:
Method Name: __fft_filters


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