view dsp/phasedata.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
line wrap: on
line source
% phasedata - Spectral data from buffered frames
%
% phasedata ::
%    seq([[N,L]])  		~'source data',
%    (N:natural->[[N]])	~'function to compute window, eg hanning'
% -> seq([[M,L]]).

function a=phasedata(x,windowfn)
	H=spdiag(feval(windowfn,size(source,1)));
	a=map(@(x)phasespec(H*x),source);
end