Mercurial > hg > ishara
diff dsp/lin2mel.m @ 32:c3b0cd708782
Imported core dsp tools.
author | samer |
---|---|
date | Sun, 20 Jan 2013 13:48:47 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dsp/lin2mel.m Sun Jan 20 13:48:47 2013 +0000 @@ -0,0 +1,12 @@ +% lin2mel - matrix to warp linear scale power spectra to mel scale +% +% lin2mel :: +% N:natural ~'size of FFT used to compute spectra', +% nonneg ~'sampling frequency', +% [[1,2]->freq] ~'upper and lower frequency limits', +% L:natural ~'number of mel bands to compute' +% -> [[L,dftbins(N)]]. + +function melW=lin2mel(N,fs,flim,L) + melW = tri_filterbank_aa(melspace(flim(1),min(flim(2),fs/2),L+2),binmap(0,fs/2,dftbins(N))); +end