view dsp/synth/playfirspec.m @ 38:9d24b616bb06

Added function algebra.
author samer
date Tue, 29 Jan 2013 15:59:01 +0000
parents c75bb62b90a9
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