d3fd847ea63f5a4df3355ff5e43b3228cf43c444,tests/test_core.py,,test_piptrack,#,486

Before Change


            y=y, sr=sr, S=S, n_fft=n_fft, hop_length=hop_length, fmin=fmin,
            fmax=fmax, threshold=threshold)

    S = np.asarray([[1, 0, 0]]).T
    np.seterr(divide="raise")
    yield __test, None, 22050, S, 4096, None, 150.0, 4000.0, 0.1

After Change


    for n_fft in [2048, 4096]:
        for hop_length in [None, n_fft // 4, n_fft // 2]:
            S = np.abs(librosa.stft(y, n_fft=n_fft, hop_length=hop_length))
            for fmin in [0, 100]:
                for fmax in [4000, 8000, sr // 2]:
                    for threshold in [0.1, 0.2, 0.5]:
                        yield __test, S, n_fft, hop_length, fmin, fmax, threshold


def test_piptrack_negative():

    def __test(y, sr, S, n_fft, hop_length, fmin, fmax, threshold):
        pitches, mags = librosa.piptrack(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: librosa/librosa
Commit Name: d3fd847ea63f5a4df3355ff5e43b3228cf43c444
Time: 2015-08-31
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_piptrack


Project Name: librosa/librosa
Commit Name: d3fd847ea63f5a4df3355ff5e43b3228cf43c444
Time: 2015-08-31
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_piptrack


Project Name: librosa/librosa
Commit Name: cb82400b9fb1d3997ed02f616209485d5ef0005f
Time: 2015-08-31
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_piptrack


Project Name: librosa/librosa
Commit Name: 79a295c02a9171e5d7d0ee5a81ac5bb75b5a5332
Time: 2015-02-15
Author: brian.mcfee@nyu.edu
File Name: tests/test_effects.py
Class Name:
Method Name: test_remix_mono