nnAudio.librosa_functions.fft2gammatonemx

nnAudio.librosa_functions.fft2gammatonemx(sr=20000, n_fft=2048, n_bins=64, width=1.0, fmin=0.0, fmax=11025, maxlen=1024)

# Ellis’ description in MATLAB: # [wts,cfreqa] = fft2gammatonemx(nfft, sr, nfilts, width, minfreq, maxfreq, maxlen) # Generate a matrix of weights to combine FFT bins into # Gammatone bins. nfft defines the source FFT size at # sampling rate sr. Optional nfilts specifies the number of # output bands required (default 64), and width is the # constant width of each band in Bark (default 1). # minfreq, maxfreq specify range covered in Hz (100, sr/2). # While wts has nfft columns, the second half are all zero. # Hence, aud spectrum is # fft2gammatonemx(nfft,sr)*abs(fft(xincols,nfft)); # maxlen truncates the rows to this many bins. # cfreqs returns the actual center frequencies of each # gammatone band in Hz. # # 2009/02/22 02:29:25 Dan Ellis dpwe@ee.columbia.edu based on rastamat/audspec.m # Sat May 27 15:37:50 2017 Maddie Cusimano, mcusi@mit.edu 27 May 2017: convert to python