Skip to content

Instantly share code, notes, and snippets.

@joastbg
Created November 17, 2017 11:12
Show Gist options
  • Save joastbg/f0d50862d75f8f2ec0650cc5c7f29ac4 to your computer and use it in GitHub Desktop.
Save joastbg/f0d50862d75f8f2ec0650cc5c7f29ac4 to your computer and use it in GitHub Desktop.
Echo effect in MATLAB
[y, Fs] = audioread('01_DJ.wav');
h = [1, zeros(1,0.4*Fs), 0.5, zeros(1,0.4*Fs), 0.2];
plot(h)
out = conv((y(:,1)+y(:,2))/2,h);
sound(out,Fs);
plot(out);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment