Sound effect using exponentially decreasing Amplitude Modulated wave

Code:

t=0:1/22400:5;
x=4*(1+sin(2*pi*4*t)).*sin(2*pi*400*t).*exp(-t);
plot(t,x);
sound(x,22400);

No comments