Mercurial > hg > ishara
annotate dsp/synth/spec2snd.m @ 34:c75bb62b90a9
Imported audio synthesis tools.
author | samer |
---|---|
date | Sun, 20 Jan 2013 19:05:05 +0000 |
parents | |
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 |