annotate arrows/dsp/amelceps.m @ 61:eff6bddf82e3
tip
Finally implemented perceptual brightness thing.
author |
samer |
date |
Sun, 11 Oct 2015 10:20:42 +0100 |
parents |
beb8a3f4a345 |
children |
|
rev |
line source |
samer@0
|
1 % melceps - arrow from audio to log mel cepstrum (MFCCs)
|
samer@0
|
2 function o=melceps(N,M,L,fs,varargin)
|
samer@37
|
3 opts=options('norm_rate',1e-6,'plot_melspec',1,'lowf',100,varargin{:});
|
samer@0
|
4 if opts.plot_melspec,
|
samer@0
|
5 mp=obs_with(imgtrace(256,'fig',9,'clim',[-20,20]));
|
samer@0
|
6 figure(9); colormap(bipolar1);
|
samer@0
|
7 else; mp=aid; end
|
samer@0
|
8
|
samer@0
|
9 o = amelspec(N,M,fs,'lowf',opts.lowf) ...
|
samer@0
|
10 * states(azeromean(gaussian,'rate',opts.norm_rate),50) * (aid + vplotter('fig',12)) ...
|
samer@0
|
11 * mp * adct(1:L); % ...
|
samer@0
|
12 % * obs_with(plotter('fig',11,'ylim',[-20,20],'xlim',[0,L+1],'plotfn',@bar));
|
samer@0
|
13
|