Mercurial > hg > ishara
annotate dsp/synth/playfirspec.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 X=playfirspec(A,h) |
samer@34 | 2 % PLAYFIRSPEC - Synthesis spectrum using FIR filters |
samer@34 | 3 % |
samer@34 | 4 % playfirspec :: [[N,M]], [[L]] -> [[T]]. |
samer@34 | 5 |
samer@34 | 6 x=fir2snd(spec2fir(A),h.*randn(size(h))); |
samer@34 | 7 if nargout<1, sound(flatten(x),11025); else X=x; end |