annotate dsp/lin2mel.m @ 47:82075c94eed1
adding a bunch of stuff, including graphics and pitch toolboxes.
author |
samer |
date |
Sat, 17 Jan 2015 15:20:35 +0000 |
parents |
c3b0cd708782 |
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
|