Mercurial > hg > ishara
view dsp/phasedata.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
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