7faab20caee8d81f82ea323c675dd7fd3a983942,librosa/core.py,,stft,#,170

Before Change


    y_frames    = util.frame(y, frame_length=n_fft, hop_length=hop_length)

    // RFFT and Conjugate here to match phase from DPWE code
    stft_matrix = fft.rfft(fft_window * y_frames, axis=0).conj().astype(np.complex64)

    return stft_matrix

def istft(stft_matrix, hop_length=None, win_length=None, window=None):  

After Change


                           order="F")
    
    // how many columns can we fit within MAX_MEM_BLOCK?
    n_columns = int(__MAX_MEM_BLOCK / (stft_matrix.shape[0] * stft_matrix.itemsize))
    
    for block_start in xrange(0, stft_matrix.shape[1], n_columns):
        block_end = min(block_start + n_columns, 
                        stft_matrix.shape[1])
        
        // RFFT and Conjugate here to match phase from DPWE code
        stft_matrix[:, block_start:block_end] = fft.rfft(fft_window * y_frames[:, block_start:block_end], 
                                                   axis=0).conj()
    
    return stft_matrix

def istft(stft_matrix, hop_length=None, win_length=None, window=None):  
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: librosa/librosa
Commit Name: 7faab20caee8d81f82ea323c675dd7fd3a983942
Time: 2014-01-23
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: stft


Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: save_featureset


Project Name: librosa/librosa
Commit Name: b9a5f7d2bf056e397ee527425c41d214265ca59c
Time: 2013-11-14
Author: brm2132@columbia.edu
File Name: librosa/display.py
Class Name:
Method Name: specshow