view dsp/synth/spec2snd.m @ 58:ba866ae124c6

Now accepts single color index for all points.
author samer
date Fri, 09 Oct 2015 13:01:37 +0100
parents c75bb62b90a9
children
line wrap: on
line source
function Y=spec2snd(X,frame,hop,varargin)
% spec2snd - Sound from sequence of power spectra
%
% spec2snd :: 
% 	  seq([[M,L]])	~'power spectra in columns',
%	  natural   	~'frame size for resynthesis',
% 	  natural	   ~'hop size for unbuffer'
% -> seq([[M]])	~'output sequence'.


src=rndseq(gaussian,frame+size(X,1)-1);
Y=unbuffer(fir2snd(spec2fir(X),src),hop);