aa4c67a9c9d786e49dea564a703e6828b9cba411,librosa/core/constantq.py,,cqt,#,25

Before Change


                             .format(n_octaves - 1, n_octaves))

    // Now do the recursive bit
    fft_basis, n_fft, filter_lengths = __fft_filters(sr, fmin_t,
                                                     n_filters,
                                                     bins_per_octave,
                                                     tuning,
                                                     resolution,
                                                     norm,
                                                     sparsity)

    min_filter_length = np.min(filter_lengths)

    my_y, my_sr, my_hop = y, sr, hop_length

After Change


    if res_type != "sinc_fastest" and audio._HAS_SAMPLERATE:

        // Do two octaves before resampling to allow for usage of sinc_fastest
        fft_basis, n_fft, filter_lengths = __fft_filters(sr, fmin_t,
                                                         n_filters,
                                                         bins_per_octave,
                                                         tuning,
                                                         filter_scale,
                                                         norm,
                                                         sparsity)
        min_filter_length = np.min(filter_lengths)

        // Compute a dynamic hop based on n_fft
        my_cqt = __variable_hop_response(y, n_fft,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: librosa/librosa
Commit Name: aa4c67a9c9d786e49dea564a703e6828b9cba411
Time: 2016-02-04
Author: brian.mcfee@nyu.edu
File Name: librosa/core/constantq.py
Class Name:
Method Name: cqt


Project Name: librosa/librosa
Commit Name: 9f5665cdbcafb5eb0c3c357081eb1766800c1e75
Time: 2015-05-13
Author: brian.mcfee@nyu.edu
File Name: librosa/core/constantq.py
Class Name:
Method Name: cqt