Last active
August 29, 2015 14:06
-
-
Save davidallsopp/611b0b0721a6c8ae2359 to your computer and use it in GitHub Desktop.
Random "music" for code club
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from random import randint | |
from winsound import Beep | |
while True: | |
Beep(randint(200,5000), 250) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by http://usingpython.com/dl/sound.py, which lists some note frequencies.