c7811e399b636c2514d6bc0b6013291541f1a3ed,librosa/feature.py,,spectral_contrast,#,201

Before Change


    octa[1:] = 200 * (2.0**np.arange(0, n_bands + 1))

    valley = np.zeros((n_bands + 1, n_frames))
    peak = np.zeros((n_bands + 1, n_frames))

    for k in range(1, len(octa)):
        current_band = np.logical_and(freq >= octa[k - 1], freq <= octa[k])

After Change


    octa[1:] = 200 * (2.0**np.arange(0, n_bands + 1))

    valley = np.zeros((n_bands + 1, S.shape[1]))
    peak = np.zeros_like(valley)

    for k, (f_low, f_high) in enumerate(zip(octa[:-1], octa[1:])):
        current_band = np.logical_and(freq >= f_low, freq <= f_high)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: c7811e399b636c2514d6bc0b6013291541f1a3ed
Time: 2014-12-31
Author: brian.mcfee@nyu.edu
File Name: librosa/feature.py
Class Name:
Method Name: spectral_contrast


Project Name: scikit-learn/scikit-learn
Commit Name: 1801c4b27479d82a95a49a17a06edeb1c15fff39
Time: 2020-02-12
Author: 34657725+jeremiedbb@users.noreply.github.com
File Name: sklearn/decomposition/_nmf.py
Class Name:
Method Name: _initialize_nmf


Project Name: librosa/librosa
Commit Name: c8280cd73ec4782188ab1d8d4d7f4ce349a07f6a
Time: 2016-11-02
Author: brian.mcfee@nyu.edu
File Name: tests/test_effects.py
Class Name:
Method Name: test_trim