Log in to Freesound

Problems logging in?
Don't have an account? Join now

Problems logging in?

Enter your email or username below and we'll send you a link to help you login into your account.

Back to log in

Almost there!

We've sent a verification link by email

Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.

Default title

  • Sounds
  • Tags
  • Forum
  • Map
    • Sounds
    • Packs
    • Forum
    • Map
    • Tags
    • Random sound
    • Charts
    • Donate
    • Help

random python winsound merge 1 2 and 3.wav

Not enough ratings
gis_sweden

May 31st, 2017

Follow
Sound effects > Electronic / Design

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

Sound illegal or offensive? Flag it!
beep
computer-music
python
random
winsound

Type

Wave (.wav)

Duration

0:14.277

File size

2.4 MB

Sample rate

44100.0 Hz

Bit depth

16 bit

Channels

Stereo

Comments
This sound has not been commented on yet, be the first to comment!
Please log in to comment
  1. 137 downloads
  2. 0 comments
Creative Commons 0
You can copy, modify, distribute and perform the sound, even for commercial purposes, all without the need of asking permission to the author. Get attribution text...
Login to download
Share url:
920 x 245
Embed example, large size
481 x 86
Embed example, medium size
375 x 30
Embed example, small size
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2025 Universitat Pompeu Fabra