Advertisement
here2share

# audio_freqs.py

May 9th, 2015
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. # audio_freqs.py
  2.  
  3. import winsound
  4.  
  5. Max_Freq = 32767
  6. Min_Freq = 37
  7. Freqs = Max_Freq-Min_Freq # frequency must be in 37 thru 32767
  8. Dur = 500 # Set Duration To 500 ms == 0.5 second
  9. Tones = 30
  10. Difference = Freqs/Tones
  11.  
  12. for loop in range(Tones+1):
  13.     Freq = Min_Freq+(loop*Difference)
  14.     print Freq
  15.     winsound.Beep(Freq,Dur)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement