Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # audio_freqs.py
- import winsound
- Max_Freq = 32767
- Min_Freq = 37
- Freqs = Max_Freq-Min_Freq # frequency must be in 37 thru 32767
- Dur = 500 # Set Duration To 500 ms == 0.5 second
- Tones = 30
- Difference = Freqs/Tones
- for loop in range(Tones+1):
- Freq = Min_Freq+(loop*Difference)
- print Freq
- winsound.Beep(Freq,Dur)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement