annotate arrows/dsp/ainvmel.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents 672052bd81f8
children
rev   line source
samer@0 1 % ainvmel - arrow to warp mel scale spectrum to linear freq spectrum
samer@0 2 %
samer@0 3 % ainvmel ::
samer@0 4 % N:natural ~'block size of original audio frames',
samer@0 5 % nonneg ~'audio sampling frequency in Hz',
samer@0 6 % [[1,2]] ~'frequency limits in Hz',
samer@0 7 % L:natural ~'number of bands in mel spectrum'
samer@0 8 % -> arrow( {[[L]]}, {[[dftbins(N)]]}, empty).
samer@0 9
samer@0 10 function o=ainvmel(N,fs,flim,L)
samer@0 11 o=amult(tri_filterbank_aa(melspace(flim(1),min(flim(2),fs/2),L+2),binmap(0,fs/2,dftbins(N)))');
samer@0 12 end