ade60fc6489a1ffd02836d773356088dd229d97a,librosa/__init__.py,,istft,#,81

Before Change


    else:
        // FIXME:   2012-10-20 18:58:56 by Brian McFee <brm2132@columbia.edu>
        //      there"s a magic number 2/3 in istft.m ... not sure about this one
        window = pad(scipy.signal.hanning(hann_w), n_fft) * 2.0 / 3
        pass

    // Set the default hop, if it"s not already specified
    if hop is None:
        hop = int(window.shape[0] / 2 )
        pass

    x_length    = n_fft + (num_frames - 1) * hop
    x           = numpy.zeros((x_length,))

    for b in xrange(0, hop * (num_frames), hop):
        ft              = d[:, b/hop]
        ft              = numpy.concatenate((ft, numpy.conj(ft[(n_fft/2 -1):0:-1])), 0)
        px              = numpy.real(scipy.ifft(ft))
        x[b:(b+n_fft)] += px * window
        pass

After Change


    else:
        // FIXME:   2012-10-20 18:58:56 by Brian McFee <brm2132@columbia.edu>
        //      there"s a magic number 2/3 in istft.m ... not sure about this one
        window = pad(scipy.signal.hanning(hann_w) * 2.0 / 3, n_fft)
        pass

    // Set the default hop, if it"s not already specified
    if hop is None:
        hop = int(window.shape[0] / 2 )
        pass

    x_length    = n_fft + (num_frames - 1) * hop
    x           = numpy.zeros((x_length,))

    for b in xrange(0, hop * (num_frames), hop):
        ft              = d[:, b/hop]
        ft              = numpy.concatenate((ft, numpy.conj(ft[(n_fft/2 -1):0:-1])), 0)
        px              = numpy.real(scipy.ifft(ft))
        x[b:(b+n_fft)] += px * window
        pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: librosa/librosa
Commit Name: ade60fc6489a1ffd02836d773356088dd229d97a
Time: 2012-11-27
Author: brm2132@columbia.edu
File Name: librosa/__init__.py
Class Name:
Method Name: istft


Project Name: fgnt/nara_wpe
Commit Name: ff9161da3c8c0868dc4b7a9ea88aa115ecc59be7
Time: 2018-09-26
Author: cbj@mail.uni-paderborn.de
File Name: nara_wpe/wpe.py
Class Name:
Method Name: build_y_tilde


Project Name: pytorch/audio
Commit Name: c92392fc7cedd6ed958745e82ab6233b59c993ef
Time: 2020-10-13
Author: 35951198+lawlict@users.noreply.github.com
File Name: torchaudio/compliance/kaldi.py
Class Name:
Method Name: fbank