view dsp/synth/playfirspec.m @ 34:c75bb62b90a9

Imported audio synthesis tools.
author samer
date Sun, 20 Jan 2013 19:05:05 +0000
parents
children
line wrap: on
line source
function X=playfirspec(A,h)
% PLAYFIRSPEC - Synthesis spectrum using FIR filters
%
% playfirspec :: [[N,M]], [[L]] -> [[T]].

x=fir2snd(spec2fir(A),h.*randn(size(h)));
if nargout<1, sound(flatten(x),11025); else X=x; end