daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function x = makeNote(n, T, dt)
  2.  
  3. tau=0.3;
  4. f0=440;
  5. t= 0:dt:T;
  6. f=(2^(n/12))*f0;
  7. w=2*pi*f;
  8. x=cos(w*t).*exp(-3*t/tau);
  9.  
  10. end
RAW Paste Data
Top