random python winsound merge 1 2 and 3.wav

by gis_sweden

Description

I made a small Python program that generates 20 random beeps.
I record the outcome.
I cut the result so that the first beep starts after 0.01 sec
The file ends right after the last beep.
(I'm a Python noob... If you find something you don’t like in the code please let me know.)

In this sound I have joined three "beep files".
Sound 1 panned to the left
Sound 2 in the center
Sound 3 panned to the right

# GIS_SWEDEN 20170531 - Random Beep In Python :-)
import winsound
import random
import time
beepnr = 1

while beepnr < 21:
freq = random.randrange(1000)+110
dur1 = random.randrange(700)+20
dur2 = random.randrange(10)+2
winsound.Beep (freq, dur1)
time.sleep(dur2/10)
print 'Beep Number', beepnr
beepnr = beepnr + 1
Ad Space

Similar Sounds

View all →
Beep 1 sec.wav
0:01 http://creativecommo...
alarm clock short.wav
0:08 http://creativecommo...
Heart Monitor Beep
0:27 http://creativecommo...
tone beep.wav
0:00 https://creativecomm...
Woosh Noise 1.wav
0:00 http://creativecommo...
Cordless phone ring.wav
0:20 https://creativecomm...
car horn.wav
0:04 http://creativecommo...
buttonchime02up.wav
0:02 https://creativecomm...
btn402.mp3
0:00 https://creativecomm...
Bad Beep (Incorrect)
0:00 https://creativecomm...
Car Horns.wav
0:13 https://creativecomm...
heartmonitor-EKG.wav
1:03 https://creativecomm...