c083a0333c395d5a45fb0ba3bedaf8aba5a39b85,librosa/feature.py,,hz_to_mel,#Any#Any#,16

Before Change


    logstep     = numpy.exp(numpy.log(6.4) / 27.0)
    linpts      = f < brkfrq

    nlinpts     = numpy.invert(linpts)

    z           = numpy.zeros_like(f)

    // Fill in parts separately
    z[linpts]   = (f[linpts] - f_0) / f_sp
    z[nlinpts]  = brkpt + numpy.log(f[nlinpts] / brkfrq) / numpy.log(logstep)

    return z

After Change


    brkpt   = (brkfrq - f_min) / f_sp
    logstep = numpy.log(6.4) / 27.0

    mels[nonlin]  = brkpt + numpy.log(frequencies[nonlin] / brkfrq) / logstep

    return mels
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


Project Name: enthought/chaco
Commit Name: 89d09e5bdcef7b225575988dcbc8732518318c87
Time: 2012-02-07
Author: cfarrow@enthought.com
File Name: chaco/cmap_image_plot.py
Class Name: CMapImagePlot
Method Name: _compute_cached_image


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