samer@32: % lin2mel - matrix to warp linear scale power spectra to mel scale samer@32: % samer@32: % lin2mel :: samer@32: % N:natural ~'size of FFT used to compute spectra', samer@32: % nonneg ~'sampling frequency', samer@32: % [[1,2]->freq] ~'upper and lower frequency limits', samer@32: % L:natural ~'number of mel bands to compute' samer@32: % -> [[L,dftbins(N)]]. samer@32: samer@32: function melW=lin2mel(N,fs,flim,L) samer@32: melW = tri_filterbank_aa(melspace(flim(1),min(flim(2),fs/2),L+2),binmap(0,fs/2,dftbins(N))); samer@32: end