nnAudio.utils.complex_mul

nnAudio.utils.complex_mul(cqt_filter, stft)

Since PyTorch does not support complex numbers and its operation. We need to write our own complex multiplication function. This one is specially designed for CQT usage.

Parameters

cqt_filter (tuple of torch.Tensor) – The tuple is in the format of (real_torch_tensor, imag_torch_tensor)

Returns

The output is in the format of (real_torch_tensor, imag_torch_tensor)

Return type

tuple of torch.Tensor