e2d974e8be89cdbf7bfae6ed39ebe807e8033863,utils/audio.py,AudioProcessor,_griffin_lim,#AudioProcessor#Any#,77

Before Change


        Based on https://github.com/librosa/librosa/issues/434
        """
        angles = np.exp(2j * np.pi * np.random.rand(*S.shape))
        S_complex = np.abs(S).astype(np.complex)
        y = self._istft(S_complex * angles)
        for i in range(self.griffin_lim_iters):
            angles = np.exp(1j * np.angle(self._stft(y)))
            y = self._istft(S_complex * angles)

After Change


        for i in range(self.griffin_lim_iters):
            S_t = self._istft(S_best)
            est = self._stft(S_t)
            phase = est / np.maximum(1e-8, np.abs(est))
            S_best = S * phase
        S_t = self._istft(S_best)
        y = np.real(S_t)
        return y

    def melspectrogram(self, y):
        D = self._stft(self.apply_preemphasis(y))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mozilla/TTS
Commit Name: e2d974e8be89cdbf7bfae6ed39ebe807e8033863
Time: 2018-04-17
Author: egolge@mozilla.com
File Name: utils/audio.py
Class Name: AudioProcessor
Method Name: _griffin_lim


Project Name: dask/dask-ml
Commit Name: 5f64707b8dc2929601b3ecca44144f3aa4071fb8
Time: 2017-10-30
Author: TomAugspurger@users.noreply.github.com
File Name: dask_ml/cluster/k_means.py
Class Name:
Method Name: _kmeans_single_lloyd


Project Name: interactiveaudiolab/nussl
Commit Name: 4f5bee81eeb9cecb9d040cb4436dd7f07e06b965
Time: 2020-03-22
Author: prem@u.northwestern.edu
File Name: nussl/separation/primitive/melodia.py
Class Name: Melodia
Method Name: create_harmonic_mask