annotate dsp/lin2mel.m @ 61:eff6bddf82e3
tip
Finally implemented perceptual brightness thing.
author |
samer |
date |
Sun, 11 Oct 2015 10:20:42 +0100 |
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
|