fork download
  1. fs = 44100;
  2. f1 = 50;
  3. f2 = 22050;
  4. T = 1;
  5.  
  6. w1=2*pi*f1;
  7. w2=2*pi*f2;
  8. t=0:1/fs:(T*fs-1)/fs;
  9. K=T*w1/log(w2/w1);
  10. L=T/log(w2/w1);
  11. sweep=sin(K.*(exp(t./L)-1));
Success #stdin #stdout 0.19s 65040KB
stdin
Standard input is empty
stdout
Standard output is empty