Mercurial > hg > ishara
annotate 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 |
rev | line source |
---|---|
samer@32 | 1 % phasedata - Spectral data from buffered frames |
samer@32 | 2 % |
samer@32 | 3 % phasedata :: |
samer@32 | 4 % seq([[N,L]]) ~'source data', |
samer@32 | 5 % (N:natural->[[N]]) ~'function to compute window, eg hanning' |
samer@32 | 6 % -> seq([[M,L]]). |
samer@32 | 7 |
samer@32 | 8 function a=phasedata(x,windowfn) |
samer@32 | 9 H=spdiag(feval(windowfn,size(source,1))); |
samer@32 | 10 a=map(@(x)phasespec(H*x),source); |
samer@32 | 11 end |
samer@32 | 12 |
samer@32 | 13 |