1a766e674e36b894d6aa6734e792a764fc91e2c6,librosa/filters.py,,constant_q,#,250

Before Change


        
        for i in range(len(filters)):
            f_len = len(filters[i])
            lpad = (max_len - f_len) / 2
            filters[i] = np.pad(filters[i], (lpad, max_len - f_len - lpad), mode="constant")

    return filters

def cq_to_chroma(n_input, bins_per_octave=12, n_chroma=12, roll=0):

After Change


        max_len = max(map(len, filters))
        
        for i in range(len(filters)):
            filters[i] = librosa.util.pad_center(filters[i], max_len)

    return filters

def cq_to_chroma(n_input, bins_per_octave=12, n_chroma=12, roll=0):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: librosa/librosa
Commit Name: 1a766e674e36b894d6aa6734e792a764fc91e2c6
Time: 2014-01-18
Author: brm2132@columbia.edu
File Name: librosa/filters.py
Class Name:
Method Name: constant_q


Project Name: librosa/librosa
Commit Name: 1a766e674e36b894d6aa6734e792a764fc91e2c6
Time: 2014-01-18
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: stft


Project Name: librosa/librosa
Commit Name: 1a766e674e36b894d6aa6734e792a764fc91e2c6
Time: 2014-01-18
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: istft


Project Name: librosa/librosa
Commit Name: 1a766e674e36b894d6aa6734e792a764fc91e2c6
Time: 2014-01-18
Author: brm2132@columbia.edu
File Name: librosa/filters.py
Class Name:
Method Name: constant_q