nnAudio.librosa_functions.fft_frequencies

nnAudio.librosa_functions.fft_frequencies(sr=22050, n_fft=2048)

Alternative implementation of np.fft.fftfreq :param sr: Audio sampling rate :type sr: number > 0 [scalar] :param n_fft: FFT window size :type n_fft: int > 0 [scalar]

Returns

freqs – Frequencies (0, sr/n_fft, 2*sr/n_fft, …, sr/2)

Return type

np.ndarray [shape=(1 + n_fft/2,)]

Examples

>>> librosa.fft_frequencies(sr=22050, n_fft=16)
array([     0.   ,   1378.125,   2756.25 ,   4134.375,
         5512.5  ,   6890.625,   8268.75 ,   9646.875,  11025.   ])