annotate dsp/synth/spec2snd.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents c75bb62b90a9
children
rev   line source
samer@34 1 function Y=spec2snd(X,frame,hop,varargin)
samer@34 2 % spec2snd - Sound from sequence of power spectra
samer@34 3 %
samer@34 4 % spec2snd ::
samer@34 5 % seq([[M,L]]) ~'power spectra in columns',
samer@34 6 % natural ~'frame size for resynthesis',
samer@34 7 % natural ~'hop size for unbuffer'
samer@34 8 % -> seq([[M]]) ~'output sequence'.
samer@34 9
samer@34 10
samer@34 11 src=rndseq(gaussian,frame+size(X,1)-1);
samer@34 12 Y=unbuffer(fir2snd(spec2fir(X),src),hop);
samer@34 13