comparison dsp/synth/spec2snd.m @ 34:c75bb62b90a9

Imported audio synthesis tools.
author samer
date Sun, 20 Jan 2013 19:05:05 +0000
parents
children
comparison
equal deleted inserted replaced
33:5b7d90b6393a 34:c75bb62b90a9
1 function Y=spec2snd(X,frame,hop,varargin)
2 % spec2snd - Sound from sequence of power spectra
3 %
4 % spec2snd ::
5 % seq([[M,L]]) ~'power spectra in columns',
6 % natural ~'frame size for resynthesis',
7 % natural ~'hop size for unbuffer'
8 % -> seq([[M]]) ~'output sequence'.
9
10
11 src=rndseq(gaussian,frame+size(X,1)-1);
12 Y=unbuffer(fir2snd(spec2fir(X),src),hop);
13