view 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
line wrap: on
line source
% ainvmel - arrow to warp mel scale spectrum to linear freq spectrum
%
% ainvmel :: 
%    N:natural ~'block size of original audio frames',
%    nonneg    ~'audio sampling frequency in Hz',
%    [[1,2]]   ~'frequency limits in Hz',
%    L:natural ~'number of bands in mel spectrum'
% -> arrow( {[[L]]}, {[[dftbins(N)]]}, empty).

function o=ainvmel(N,fs,flim,L)
	o=amult(tri_filterbank_aa(melspace(flim(1),min(flim(2),fs/2),L+2),binmap(0,fs/2,dftbins(N)))');
end