daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc;
  2. clear all;
  3. close all;
  4. fs=5000;
  5. dt=1/fs;
  6. N=1*fs;
  7. n=0:N-1;
  8. t=dt*n;
  9.  
  10. %exp(-2*t) funkcja gasnaca
  11. %sin funkcja oscylacyjna
  12. do = exp(-2*t).*sin(2*pi*261.6*t);
  13. re = exp(-2*t).*sin(2*pi*293.7*t);
  14. mi = exp(-2*t).*sin(2*pi*329.6*t);
  15. fa = exp(-2*t).*sin(2*pi*349.6*t);
  16. sol = exp(-2*t).*sin(2*pi*391.9*t);
  17. la = exp(-2*t).*sin(2*pi*440*t);
  18. si = exp(-2*t).*sin(2*pi*493.9*t);
  19.  
  20. do = exp(-5*t).*sin(2*pi*261.6*t);
  21. x = [do re mi fa sol la si la sol fa mi re do];
  22. soundsc(x)
  23. plot(x)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top