5797b341b65c0dbdc95208cd1ce962aa068bcc32,librosa/feature.py,,melfb,#,267

Before Change


        hislope     = (freqs[2] - fftfreqs) / (freqs[2] - freqs[1])

        // .. then intersect them with each other and zero
        wts[i, :(1 + n_fft/2)]    = np.maximum(0, 
                                            np.minimum(loslope, hislope))


    // Slaney-style mel is scaled to be approx constant E per channel
    enorm   = 2.0 / (binfreqs[2:n_filts+2] - binfreqs[:n_filts])

After Change


        upper   = (freqs[i+2] - fftfreqs)   / (freqs[i+2] - freqs[i+1])

        // .. then intersect them with each other and zero
        weights[i, :size]   = np.maximum(0, np.minimum(lower, upper)) * enorm[i]
   
    return weights
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: librosa/librosa
Commit Name: 5797b341b65c0dbdc95208cd1ce962aa068bcc32
Time: 2013-03-23
Author: brm2132@columbia.edu
File Name: librosa/feature.py
Class Name:
Method Name: melfb


Project Name: librosa/librosa
Commit Name: b89d864ba91813f3ccce46134fd7eec49a7501ed
Time: 2019-04-28
Author: brian.mcfee@nyu.edu
File Name: librosa/util/_nnls.py
Class Name:
Method Name: _nnls


Project Name: librosa/librosa
Commit Name: a4100f17a0433eda78a6cf393f08f9a8d9b46fdb
Time: 2019-06-21
Author: brian.mcfee@nyu.edu
File Name: librosa/util/_nnls.py
Class Name:
Method Name: _nnls