view dsp/synth/spec2snd.m @ 42:ae596261e75f

Various fixes and development to audio handling
author samer
date Tue, 02 Dec 2014 14:51:13 +0000
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);