Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. timeLength = 6 # seconds
  2. fs = 44100
  3. t = np.arange(0, timeLength, 1.0/fs)
  4.  
  5.  
  6. # EXPCHIRP -----------------------------------------
  7.  
  8. t1 = np.arange(1, timeLength+1, 1.0/fs)
  9. A = np.e**-t
  10. f0 = 2000.0 # Hz
  11. f1 = 10000.0
  12. k = (f1/f0)*(1/t1)
  13. phi0 = np.pi / 2 # phase, radiants. # sampling rate
  14. s0 = A * np.sin(phi0 + 2*np.pi*f0*((k-1)/np.log(k)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement