nnAudio.utilsΒΆ
Module containing helper functions such as overlap sum and Fourier kernels generators
Functions
Auto broadcast input so that it can fits into a Conv1d  | 
|
Auto broadcast input so that it can fits into a Conv2d  | 
|
Since PyTorch does not support complex numbers and its operation.  | 
|
Automatically create CQT kernels in time domain  | 
|
This function creates the Fourier Kernel for STFT, Melspectrogram and CQT.  | 
|
Calculate the highest frequency we need to preserve and the lowest frequency we allow to pass through.  | 
|
A helper function that downsamples the audio by half.  | 
|
A helper function that downsamples the audio by a arbitary factor n.  | 
|
Return new sampling rate and hop length after early dowansampling  | 
|
Compute the number of early downsampling operations  | 
|
Extending the number of frequency bins from n_fft//2+1 back to n_fft by reversing all bins except DC and Nyquist and append it on top of existing spectrogram  | 
|
Multiplying the STFT result with the cqt_kernel, check out the 1992 CQT paper [1] for how to multiple the STFT result with the CQT kernel [2] Brown, Judith C.C.  | 
|
Multiplying the STFT result with the cqt_kernel, check out the 1992 CQT paper [1] for how to multiple the STFT result with the CQT kernel [2] Brown, Judith C.C.  | 
|
Used in CQT2010 and CQT2010v2  | 
|
A helper function to calculate the next nearest number to the power of 2.  | 
|
A helper function to calculate the next nearest number to the power of 2.  | 
|