Closed faroit closed 5 years ago
@ksanjeevan you were using
torch.atan2(spec_0[..., 1], spec_0[..., 0])
in the phase vocoder. That reminds that we could add a function to get the magnitude and phase of the STFT output. Or in short: lets copy librosas magphase
Yeah that would be way cleaner/useful. Also breaking it down since torch doesn't have torch.angle like numpy does, something like:
torch.angle
def angle(tensor): return torch.atan2(tensor[...,1], tensor[...,0])
@ksanjeevan you were using
in the phase vocoder. That reminds that we could add a function to get the magnitude and phase of the STFT output. Or in short: lets copy librosas magphase