Mercurial > hg > ishara
annotate dsp/lin2mel.m @ 32:c3b0cd708782
Imported core dsp tools.
author | samer |
---|---|
date | Sun, 20 Jan 2013 13:48:47 +0000 |
parents | |
children |
rev | line source |
---|---|
samer@32 | 1 % lin2mel - matrix to warp linear scale power spectra to mel scale |
samer@32 | 2 % |
samer@32 | 3 % lin2mel :: |
samer@32 | 4 % N:natural ~'size of FFT used to compute spectra', |
samer@32 | 5 % nonneg ~'sampling frequency', |
samer@32 | 6 % [[1,2]->freq] ~'upper and lower frequency limits', |
samer@32 | 7 % L:natural ~'number of mel bands to compute' |
samer@32 | 8 % -> [[L,dftbins(N)]]. |
samer@32 | 9 |
samer@32 | 10 function melW=lin2mel(N,fs,flim,L) |
samer@32 | 11 melW = tri_filterbank_aa(melspace(flim(1),min(flim(2),fs/2),L+2),binmap(0,fs/2,dftbins(N))); |
samer@32 | 12 end |