(wave, nfft, hl)
| 468 | |
| 469 | |
| 470 | def stft(wave, nfft, hl): |
| 471 | wave_left = np.asfortranarray(wave[0]) |
| 472 | wave_right = np.asfortranarray(wave[1]) |
| 473 | spec_left = librosa.stft(wave_left, n_fft=nfft, hop_length=hl) |
| 474 | spec_right = librosa.stft(wave_right, n_fft=nfft, hop_length=hl) |
| 475 | spec = np.asfortranarray([spec_left, spec_right]) |
| 476 | |
| 477 | return spec |
| 478 | |
| 479 | |
| 480 | def istft(spec, hl): |