Skip to content

Instantly share code, notes, and snippets.

@davidallsopp
Last active August 29, 2015 14:06
Show Gist options
  • Save davidallsopp/611b0b0721a6c8ae2359 to your computer and use it in GitHub Desktop.
Save davidallsopp/611b0b0721a6c8ae2359 to your computer and use it in GitHub Desktop.
Random "music" for code club
import random
from random import randint
from winsound import Beep
while True:
Beep(randint(200,5000), 250)
@davidallsopp
Copy link
Author

Inspired by http://usingpython.com/dl/sound.py, which lists some note frequencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment