nnAudio.Spectrogram

Module containing all the spectrogram classes

Functions

rfft_fn

Classes

CFP

This is the modified version of Combined_Frequency_Periodicity().

CQT

An abbreviation for CQT1992v2().

CQT1992

This alogrithm uses the method proposed in [1], which would run extremely slow if low frequencies (below 220Hz) are included in the frequency bins.

CQT1992v2

This function is to calculate the CQT of the input signal.

CQT2010

This algorithm is using the resampling method proposed in [1].

CQT2010v2

This function is to calculate the CQT of the input signal.

Combined_Frequency_Periodicity

Vectorized version of the code in https://github.com/leo-so/VocalMelodyExtPatchCNN/blob/master/MelodyExt.py.

DFT

Experimental feature before torch.fft was made avaliable.

Gammatonegram

This function is to calculate the Gammatonegram of the input signal.

Griffin_Lim

Converting Magnitude spectrograms back to waveforms based on the “fast Griffin-Lim”[1].

MFCC

This function is to calculate the Mel-frequency cepstral coefficients (MFCCs) of the input signal.

MelSpectrogram

This function is to calculate the Melspectrogram of the input signal.

STFT

This function is to calculate the short-time Fourier transform (STFT) of the input signal.

STFTBase

STFT and iSTFT share the same inverse_stft function

iSTFT

This class is to convert spectrograms back to waveforms.